- A Django library for model extensions
- Python (3.5, 3.6, 3.7, 3.8)
- Django (2.0, 3.0)
We highly recommend and only officially support the latest patch release of each Python and Django series.
Install using pip
...
pip install django-extensions-models
Let's take a look at a quick example of using model extensions
from models_extensions.models import UUIDModel, TimeStampedModel, ActivatorModel, SoftDeleteModel
class YourModel(UUIDModel, TimeStampedModel, ActivatorModel, SoftDeleteModel):
# ...
Don't forget makemigrations
& migrate
to apply models to your database.