Making more than one new election of the same type on the same day in a single wizard flow. e.g, enter a date > local elections > 2 councils > some wards > create ID.
This is because save() is being called on both the [type].[date] group ID objects. The first one works, but the second doesn't because it's trying to save a model with a PK that already exists.
Related to this, note that on the review step there's more than one group ID listed.
Not sure exactly how, but I'm guessing I messed this up in #108 when I moved the get_or_create() logic that is supposed to prevent this condition to here:
Reproduce by:
You'll then get something like:
This is because
save()
is being called on both the[type].[date]
group ID objects. The first one works, but the second doesn't because it's trying to save a model with a PK that already exists.Related to this, note that on the review step there's more than one group ID listed.