Initial work on associating events with subhires

This commit is contained in:
2022-10-20 12:56:42 +01:00
parent 4449efcced
commit 948a41f43a
11 changed files with 447 additions and 746 deletions

View File

@@ -575,7 +575,7 @@ class EventAuthorisation(models.Model, RevisionMixin):
@reversion.register
class Subhire(BaseEvent):
insurance_value = models.DecimalField(max_digits=10, decimal_places=2) # TODO Validate if this is over notifiable threshold
# TODO Associated events
events = models.ManyToManyField(Event)
@property
def display_id(self):