#25794: loaddata with UUIDs as natural foreign keys does not work anymore
-------------------------------------+-------------------------------------
Reporter: GunnarScherf | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: 1.9rc1
commands) |
Severity: Normal | Resolution: invalid
Keywords: UUID loaddata | Triage Stage:
--natural-foreign | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GunnarScherf):
* status: new => closed
* resolution: => invalid
Comment:
Sorry, made a mistake in natural_key, which worked in django 1.8
{{{
def natural_key(self):
return (self.application.natural_key(), self.role.natural_key())
}}}
correct definition:
{{{
def natural_key(self):
return self.application.natural_key() + self.role.natural_key()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25794#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/070.312badf1f4edefe132304b497ece2b3b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.