Looking more into this, my parent model has a primary key field named 'code'. The inline forms do show the 'code' field for the child model instances, and the data is in the formset's querydict: QueryDict <... u'childmodel_set-0-code': [u'...'] ...>
However the table column name for the one-to-one relationship between parent and child is called 'parendmodel__ptr__id', and the admin is looking for 'childmodel_set-0-parentmodel_ptr' in the formset data. Why? On Mon, Feb 13, 2012 at 10:43 AM, Demetrio Girardi <demetrio.gira...@gmail.com> wrote: > I have a child model that I wish edit inline in the admin site. When > trying to save edits I get a MultiValueDictKeyError: > > "Key 'childmodel_set-0-parentmodel_ptr' not found in <QueryDict: ..>" > > It seems to me the admin is trying to get the reference to the parent > model from the form data. How can I fix this? Do I need a custom form? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.