makemigrations and normalize_unique_together
normalize_unique_together breaks when it is given a set()
, but that's what Django migration's autodetector provides when running makemigrations
.
To reproduce:
- Create a model with unique_together
- Run makemigrations
Seems to have been introduced on Oct 7 in the fix for #21236 (4dbd95a)
Triage Stage: |
Unreviewed → Accepted
|
Cc: |
Baptiste Mispelon added
|
Has patch: |
set
|
Triage Stage: |
Accepted → Ready for checkin
|
Owner: |
set to Baptiste Mispelon <bmispelon@…>
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
What about simply forcing
unique_together
to be a tuple at the beginning ofnormalize_unique_together()
?PR (with tests) here: https://github.com/django/django/pull/1946