Cleanup & Squash migrations

This commit is contained in:
2020-09-15 09:30:02 +01:00
parent 5487b73006
commit a5516ee350
24 changed files with 219 additions and 937 deletions

View File

@@ -781,5 +781,9 @@ class EventChecklistCrew(models.Model, RevisionMixin):
reversion_hide = True
def clean(self):
if self.start > self.end:
raise ValidationError('Unless you\'ve invented time travel, crew can\'t finish before they have started.')
def __str__(self):
return "{} ({})".format(str(self.crewmember), self.role)