#24607: dumpdata (with natural keys) / loaddata failure for model inheriting 
from
User
-------------------------------+--------------------
     Reporter:  denys-duchier  |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 I am using Django1.8.  The exact error message is:
 {{{
 ValueError: Problem installing fixture
 '/home/denys/src/GSM/tmp/bug/person.json': "<Person: >" needs to have a
 value for field "user" before this many-to-many relationship can be used.
 }}}

 I have created a very small example to reproduce the problem; it is
 available on github at:

     `https://github.com/denys-duchier/django-loaddata-bug.git`

 to create the database, migrate, populate the database, then `dumpdata`,
 execute:

     `step1.bash`

 to recreate the database, migrate, and attempt the `loaddata`, execute:

     `step2.bash`

 that is when the error occurs.

--
Ticket URL: <https://code.djangoproject.com/ticket/24607>
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/056.df17ff4a66afaaaa99be917368615060%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to