Skip to main content

Workaround for related abstract models issue.

Project description

Build Status

In django a related model can’t be abstract because of db issues. This module offers a workaround, pratically it doesn’t declare the abstract, just avoid it of being created on database, but allow the children. Database creation is needed so you can create relationships.


$ pip3 install django-abstract-related-model

and add abstract_related_model to INSTALLED_APPS.


from abstract_related_model.models import AbstractRelatedModel

class ExampleAbstractRelatedModel(AbstractRelatedModel):

Running tests

Go into example folder

$ cd example

and run them

$ ./ test


Check the example folder if you have any doubts. Or you can create an issue.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_abstract_related_model-0.1.1.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page