#21278: Using dumpdata to create unit test fixtures causes duplicate foreign 
keys
for auth permissions.  Excluding auth causes other referenced auth models
to be missing.
------------------------------+------------------------------------
     Reporter:  ellisd23@…    |                    Owner:  nobody
         Type:  New feature   |                   Status:  new
    Component:  contrib.auth  |                  Version:  1.5
     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 ellisd23@…):

 It's been a while since I made the ticket, but IIRC the issue is that even
 with --natural passed, the problem is that an attempt is made to create
 permissions twice: once during the loading of the fixtures, and once
 automatically.  It's that second time that causes duplicate key errors.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21278#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/076.c82f97102763633bf292f01d43997e89%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to