bconstantin/django_polymorphic — Issue #25: dumpdata results in models with natural key where id is required
Author: airtonix
Created: 2012-01-25 05:19:53+00:00
State: open

dumpdata results in something like:

{
"pk": 4,
"model": "configurableproduct.productboolean",
"fields": {
"field": 1,
"product": "Baby Talk, Baby Wipes, Scented Thin",
"order": 0,
"value": true
}
},

where it should be :
{
"pk": 4,
"model": "configurableproduct.productboolean",
"fields": {
"field": 1,
"product": 5,
"order": 0,
"value": true
}
},

configurableproduct comes from here : http://bitbucket.org/zeus/django-shop-configurableproduct
which provide dynamic fields for the djangoshop Product model (which itself is a PolymorphicModel.