#17879: Regression in serializers when using natural keys --------------------------------------+-------------------- Reporter: danfairs | Owner: nobody Type: Uncategorized | Status: new Component: Core (Serialization) | Version: Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- The Python serializer's `handle_fk_field()` method now no longer handles the case where a related object is None and natural keys are in use. The problem appears to have been introduced in this changeset:
https://code.djangoproject.com/changeset/17439 The code now no longer checks to see if the `related` object is not `None` before attempting to call `natural_key()` on it. -- Ticket URL: <https://code.djangoproject.com/ticket/17879> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.