Django dumpdata of multi-table inherited objects
<p>I am trying to <code>./manage.py dumpdata --natural-foreign --natural-primary</code> my classes, which are:</p>

<pre><code>class SuperClassManager(Manager):
    def get_by_natural_key(self, identifier):
        return self.get(identifier=identifier)

class SuperClass(Model):
    objects = SuperClassManager()

    identifier = CharField(max_length=31, unique=True)

    def natural_key(self):
        return (self.identifier, )

class Class(SuperClass):
    pass
</code></pre>

<p>But the dumped data is:</p>

<pre><code>[
{
    "model": "app.superclass",
    "fields": {
        "identifier": "identifier"
    }
},
{
    "model": "app.class",
    "fields": {}
}
]
</code></pre>

<p>There's no way to relate the <code>Class</code> instance to the <code>SuperClass</code> instance in this case. What am I missing? Why isn't the <code>superclass_ptr</code> existent in <code>Class</code> (which points to <code>SuperClass</code>) being serialized so it is possible to relate the instances?</p>

<p>Problem being: I have more than one subclass to my superclass and many instances of each subclass. So I need this relation to happen so my fixtures will make sense.</p>