diff --git a/greg/models.py b/greg/models.py index ca552020a17e37cd5020b33ef83a1b289d134fc4..54b31d6bbb1da3f475966fd635bc87b21b7cba47 100644 --- a/greg/models.py +++ b/greg/models.py @@ -93,7 +93,9 @@ class PersonRole(BaseModel): unit = models.ForeignKey( "OrganizationalUnit", on_delete=models.PROTECT, related_name="unit_person_role" ) - start_date = models.DateField() + # The start date can be null for people that are already + # attached to the institution but does not have a guest account + start_date = models.DateField(null=True) end_date = models.DateField() # TODO Is this field needed? contact_person_unit = models.TextField()