﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33510	dumpdata misses models subclassed from other non-abstract models	Robin Harms Oredsson	nobody	"Essentially the same issue that was fixed in Django 2 has resurfaced in 3 so I'll only write a short description.

{{{

class Person(models.Model):
     some_field...
    ...


class Doctor(Person):
     doctor_field...
     ...


my_doctor = Doctor.objects.create(...)

}}}

Running manage dumpdata will cause the export to be broken. The ""my_doctor"" instance will be exported without the pointer to the person-object it will models will be within the export, but without the linking pointer value. (Probably called something like person_ptr) However if --natural-primary is included, the key will be there.

However, regardless of method the needed linked data within the person table is omitted, so running import data on a site with subclassed models like this will ''never'' work.

This bug seems to be present in 3.0 and onward."	Bug	closed	Core (Management commands)	3.2	Normal	invalid	dumpdata		Unreviewed	0	0	0	0	0	0
