SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit e78fe1dd authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix terminate fellowship

parent cbda7256
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ class FellowshipTerminateForm(forms.ModelForm):
def save(self):
today = datetime.date.today()
fellowship = self.instance
if fellowship.until_date > today:
if not fellowship.until_date or fellowship.until_date > today:
fellowship.until_date = today
return fellowship.save()
......
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