#25794: loaddata with UUIDs as natural foreign keys does not work anymore
-------------------------------------+-------------------------------------
     Reporter:  GunnarScherf         |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:  Core (Management     |    Version:  1.9rc1
  commands)                          |   Keywords:  UUID loaddata
     Severity:  Normal               |  --natural-foreign
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 When I run dumpdata with a model which has a UUIDField as a natural key,
 the dump can not be loaded anymore.
 {{{
 manage.py dumpdata --natural-foreign  myapp
 manage.py loaddata  myapp
 }}}

 The dump looks like this
 {{{
 [
 {
   "model": "accounts.applicationrole",
   "fields": {
     "application": [
       "ec1e39cb-e3e7-46c7-87b7-70ace4165d13"
     ],
     ...
 }}}
 The error message in loaddata is:
 {{{
 '(UUID('ec1e39cb-e3e7-46c7-87b7-70ace4165d13'),)' is not a valid UUID.
 }}}

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

Reply via email to