diff --git a/RIGS/migrations/0047_auto_20230517_0944.py b/RIGS/migrations/0047_auto_20230517_0944.py index e23b5513..f5cb5cef 100644 --- a/RIGS/migrations/0047_auto_20230517_0944.py +++ b/RIGS/migrations/0047_auto_20230517_0944.py @@ -12,7 +12,7 @@ def migrate_old_data(apps, schema_editor): for crew in ec.crew.all(): try: vehicle = ec.vehicles.get(driver=crew.crewmember) - except EventChecklist.DoesNotExist: + except EventChecklistVehicle.DoesNotExist: vehicle = None EventCheckIn.objects.create(event=ec.event, person=crew.crewmember, role=crew.role, time=crew.start, end_time=crew.end, vehicle=vehicle.vehicle)