[Django]-Django multi-table inheritance different from Postgres table inheritance

2👍

Unfortunately, this is not implemented neither in Django itself nor in any 3rd party package. It may be even impossible to create a 3rd party package without some major changes to Django’s core.

If you are interested in this feature, there is a ticket in Django’s bug tracker about this exact feature.

Remember that this type of inheritance does have some major limitations, like foreign keys pointing to the parent table can’t handle child instances, indexes are not shared between parent and children (there is no out-of-the-box solution for uniqueness spanned between parent and all children tables) etc.

Leave a comment