django_polymorphic
django_polymorphic copied to clipboard
dumpdata results in models with natural key where id is required
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.