#33510: dumpdata misses models subclassed from other non-abstract models -------------------------------------+------------------------------------- Reporter: Robin Harms | Owner: nobody Oredsson | Type: Bug | Status: closed Component: Core (Management | Version: 3.2 commands) | Severity: Normal | Resolution: invalid Keywords: dumpdata | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* status: new => closed * resolution: => invalid Comment: Thanks for the report. > 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. Have you tried to import dumped data? It works for me in both cases, i.e. with and without using `--natural-primary`. `person_ptr` is unnecessary because it's a `OneToOneField()` which is also a `Doctor`'s primary key, see [https://docs.djangoproject.com/en/4.0/topics/db/models/#multi-table- inheritance docs]. -- Ticket URL: <https://code.djangoproject.com/ticket/33510#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.bf6c3a407152e1bac08224457190702c%40djangoproject.com.