"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?
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?