#36750: dumpdata's output of m2m values is not deterministic
--------------------------------------+------------------------------------
     Reporter:  Jacob Walls           |                    Owner:  (none)
         Type:  Bug                   |                   Status:  new
    Component:  Core (Serialization)  |                  Version:  dev
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Comment (by VIZZARD-X):

 Updated patch and opened a new PR after refreshing my fork:

 https://github.com/django/django/pull/20308

 This version applies database-level primary key ordering for natural-key
 many-to-many relations, per the guidance from Jacob and Simon. It avoids
 Python-side sorting and only applies DB ordering when:

 - natural foreign keys are enabled,
 - the related model defines natural_key(), and
 - the model has no explicit Meta.ordering.

 All serializer tests, including PostgreSQL with --shuffle, now pass
 consistently. The change is limited to Python and XML serializers.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36750#comment:6>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019ab52973b2-a60647a9-c72c-4968-8722-2b678367fc93-000000%40eu-central-1.amazonses.com.

Reply via email to