#11807: Admin inlines onetoone related object not saved ----------------------------------------------+----------------------------- Reporter: neme...@twilightzone.lu | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: 1.1 Resolution: | Keywords: admin inline onetoone save Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | ----------------------------------------------+----------------------------- Changes (by AdamG):
* needs_better_patch: => 1 * component: Uncategorized => django.contrib.admin * needs_tests: => 0 * needs_docs: => 0 Comment: The attached patch against trunk adds a regression test that fails and shows the problem. Note that when the submitted value is not the default value, it's saved correctly, so `test_onetoone_pk_inline_changed` passes. My guess is that `BaseModelFormSet.save_existing_objects()` is skipping the form because `form.has_changed()` is False. -- Ticket URL: <http://code.djangoproject.com/ticket/11807#comment:1> Django <http://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 -~----------~----~----~----~------~----~------~--~---