Workaround for related abstract models issue.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django_abstract_related_model-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2f68b99123dd7fbe822ec0aab8731f127a84a026ce5765cc29cfddbc1088c8 |
|
MD5 | e2564f02bcf614e5f92b89ec81e2fcd7 |
|
BLAKE2b-256 | a32530d617f19d7a84c4645864180b0a902004357b79872f14d1f688ba193f18 |