Skip to content
Snippets Groups Projects
Commit 2c271ac7 authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-21: Allow start date for roles to be null

parent 11871d53
No related branches found
No related tags found
1 merge request!24GREG-21: Various model updates
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment