[Django]-Django admin – Wrong model object at edit page

1👍

This does seem somewhat strange. However, as far as I understand, Django will automatically setup the required one-to-one mappings between parents and children, when using multi-table inheritance. As you have also set these up manually, it might very well be that some kind of inconsistency is introduced due this.

If you take a look directly in the database, are the two different one-to-one relations consistent?

What happens if you remove the explicit one-to-one fields from your models?

👤nilu

Leave a comment