model extensions with timestamp and uuid and more
Project description
Django Model Extensions
- A Django library for model extensions
Requirements
- 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.
Installation
Install using pip
...
pip install django-models-extensions
settings
INSTALLED_APPS = (
# ...
'models_extensions',
)
Example
Let's take a look at a quick example of using model extensions
from models_extensions.models import UUIDModel, TimeStampedModel, ActivatorModel
class YourModel(UUIDModel, TimeStampedModel, ActivatorModel):
# ...
Don't forget makemigrations
& migrate
to apply models to your database.
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
Built Distribution
Close
Hashes for django-extensions-models-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99fce021708e1f43fb9cf3459769fec4444773ffa226783a8a3c72a24566c03 |
|
MD5 | 0be63272d4976d581ff4617954206246 |
|
BLAKE2b-256 | 2751d8d33d9c713d3f656c3f2b39110da2f3979af92ee42a3254bb12c1b81179 |
Close
Hashes for django_extensions_models-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e56d8d059f32c748e7ee7a2b802df6c2f4a641a11333356705f7c1c1280df8 |
|
MD5 | 6ad969068414fc5cf9f440d21c2f17a5 |
|
BLAKE2b-256 | 99bc31a2bb85ad833f46d6fea008e4ae274f05097b729d13caab69f872dff4a1 |