Add new line functionality for vehicles/drivers

Might it have been easier to create 'dummy' models like with EventItems? Probably...
This commit is contained in:
2020-08-27 02:20:46 +01:00
parent 9cf081efc7
commit 3438489934
7 changed files with 76 additions and 52 deletions

View File

@@ -646,7 +646,7 @@ class EventChecklist(models.Model, RevisionMixin):
event = models.OneToOneField('Event', on_delete=models.CASCADE)
# General
power_mic = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='checklist', blank=True, null=True,
power_mic = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='checklist',
verbose_name="Power MIC", on_delete=models.CASCADE, help_text="Who is the Power MIC?")
vehicles = models.JSONField(help_text="List vehicles and their drivers", default=dict, null=False)