#28385: deserializers ignore natural keys when primary key has a default value -------------------------------------+------------------------------------- Reporter: Daniel Knell | Owner: Irindu | Indeera Type: Bug | Status: assigned Component: Core | Version: 1.11 (Serialization) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Dmytryi Striletskyi): Hello, I cannot reproduce this bug, i tried few ways, but got no error during `loaddata`. May my understanding is not clear, but how do we want to get `natural_key` if `Foo` model's `primary key` exists? From `build_instance` docstring: > If the model instance doesn't have a primary key and the model supports natural keys, try to retrieve it from the database. Clarify bug's space for me, please. I wanna resolve it. Thanks. -- Ticket URL: <https://code.djangoproject.com/ticket/28385#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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.c74e82c29fa0aa6763a3bb6e6714e54b%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.