Responding to myself:
If I specify the object.id instead of just a reference to the object
as the initial field value, the selections work correctly.
E.g.
'product': item.product.id
instead of
'product': item.product
--~--~-~--~~~---~--~~
You received this
I have a formset with initial data for foreignkey fields.
Unfortunately, the values of the foreignkey fields are not selected in
the formset.forms.
Not sure if I am doing something wrong or if this is a bug or known
limitation.
I have cut the code down to a small example that reproduces the
prob
2 matches
Mail list logo