This commit is contained in:
2020-08-29 17:31:41 +01:00
parent d708207ab9
commit 1feb9449ed
9 changed files with 27 additions and 14 deletions

View File

@@ -175,9 +175,9 @@ class EventChecklistForm(forms.ModelForm):
items = {}
def clean(self):
vehicles = {key:val for key, val in self.data.items()
if key.startswith('vehicle')}
drivers = {key:val for key, val in self.data.items()
vehicles = {key: val for key, val in self.data.items()
if key.startswith('vehicle')}
drivers = {key: val for key, val in self.data.items()
if key.startswith('driver')}
for key in vehicles:
pk = int(key.split('_')[1])