#31051: Serialization dependency sorting disallows circular references
unneccesarily
-------------------------------------+-------------------------------------
     Reporter:  Matthijs Kooijman    |                    Owner:  Matthijs
                                     |  Kooijman
         Type:  Bug                  |                   Status:  assigned
    Component:  Core                 |                  Version:  master
  (Serialization)                    |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"289d0ec6fd4c7e3d68b8a8e4f833e719e3dbe205" 289d0ec6]:
 {{{
 #!CommitTicketReference repository=""
 revision="289d0ec6fd4c7e3d68b8a8e4f833e719e3dbe205"
 Refs #31051 -- Fixed reloading the database with circular related objects
 and natural keys for tests.

 Made deserialize_db_from_string() do not sort dependencies.

 deserialize_db_from_string() doesn't use natural keys, so there is no
 need to sort dependencies in serialize_db_to_string(). Moreover,
 sorting models cause issues for circular dependencies.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31051#comment:7>
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/074.9db953cc98bc0260e04b7490882a2379%40djangoproject.com.

Reply via email to