Add SubEvent.last_modified

This commit is contained in:
Raphael Michel
2020-10-15 18:32:10 +02:00
parent b4a7729cb5
commit bf59ce2661
7 changed files with 52 additions and 14 deletions

View File

@@ -1036,6 +1036,9 @@ class SubEvent(EventMixin, LoggedModel):
)
seating_plan = models.ForeignKey('SeatingPlan', on_delete=models.PROTECT, null=True, blank=True,
related_name='subevents')
last_modified = models.DateTimeField(
auto_now=True, db_index=True
)
items = models.ManyToManyField('Item', through='SubEventItem')
variations = models.ManyToManyField('ItemVariation', through='SubEventItemVariation')