Re: foreignkey values in formset initial data

2009-05-06 Thread bobhaugen
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

foreignkey values in formset initial data

2009-05-06 Thread bobhaugen
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