Skip to content

Commit

Permalink
fix(migration): allow enrollmentflow's transit agency to be null, all…
Browse files Browse the repository at this point in the history
…ow blanks for admin
  • Loading branch information
machikoyasuda committed Sep 30, 2024
1 parent 0985ded commit 2410f4f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="enrollmentflow",
name="transit_agency",
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to="core.transitagency"),
field=models.ForeignKey(
blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to="core.transitagency"
),
preserve_default=False,
),
migrations.RunPython(migrate_data),
Expand Down

0 comments on commit 2410f4f

Please sign in to comment.