django_polymorphic icon indicating copy to clipboard operation
django_polymorphic copied to clipboard

dumpdata results in models with natural key where id is required

Open airtonix opened this issue 13 years ago • 0 comments

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.

airtonix avatar Jan 25 '12 05:01 airtonix