#33582: loaddata fails on non-default database when natural keys uses foreign 
keys.
-------------------------------------+-------------------------------------
     Reporter:  François Granade     |                    Owner:  François
                                     |  Granade
         Type:  Bug                  |                   Status:  assigned
    Component:  Core                 |                  Version:  4.0
  (Serialization)                    |
     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 François Granade):

 Proposed patch in https://github.com/django/django/pull/15525

 I used `Model.from_db` rather than accessing the private `Model._state`
 field, seems cleaner

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33582#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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107017f9ca71ddd-6be9f6f0-12dd-4059-b002-926557165946-000000%40eu-central-1.amazonses.com.

Reply via email to