Skip to main content

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.

Installing

$ pip3 install django-abstract-related-model

and add abstract_related_model to INSTALLED_APPS.

Using

from abstract_related_model.models import AbstractRelatedModel

class ExampleAbstractRelatedModel(AbstractRelatedModel):
    pass

Running tests

Go into example folder

$ cd example

and run them

$ ./manage.py test

Troubleshooting

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

Release files for django-abstract-related-model 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-abstract-related-model 0.1.1
File Size Uploaded
django_abstract_related_model-0.1.1.tar.gz 2.8 kB Details

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page