#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 russellm):

 I'm confused by this report. This is the exact problem that led to the
 introduction of natural foreign keys in the first place, and I was under
 the impression that it was fixed. Permissions have natural keys defined,
 so they should be able to be dumped with `--natural`.

 Has something regressed in the 3-4 years since we committed natural keys,
 or have I missed an important detail about this report?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21278#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 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.9a5fb3b1b2879434cbb7f58045d7fe29%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to