#35854: Order of "choices" on CharField randomly changing forcing new migrations
despite no changes.
-----------------------------------+--------------------------------------
     Reporter:  WoosterInitiative  |                    Owner:  (none)
         Type:  Bug                |                   Status:  closed
    Component:  Migrations         |                  Version:  5.1
     Severity:  Normal             |               Resolution:  duplicate
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Comment (by Natalia Bidart):

 Replying to [comment:2 Claude Paroz]:
 > I don't think that a `set()` is a supported data structure for model
 field choices. Maybe we should replace `A mapping or iterable in the
 format described below` by `A mapping or sequence in the format described
 below` in
 [https://docs.djangoproject.com/en/5.1/ref/models/fields/#choices the
 docs]?

 Code wise, we really do not mind that these are sets... Do you see a
 concrete issue with using sets? (other than dropdowns or options being
 shown in a random order).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35854#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070192b07ebb95-2182f778-7fee-452c-969e-8a441355694a-000000%40eu-central-1.amazonses.com.

Reply via email to