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-extensions-models
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-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc8c43eb57289629be0d8d2ee11631c0199b3055a4a3d8451d6a11cfcbea5f4b |
|
MD5 | 1d94a9486524f28fd5e65b5be8bd06de |
|
BLAKE2b-256 | cb3b8c9ea96f389986617d8ccbced0d89c413fe67eb3833221579ce0c7c5e9e2 |
Close
Hashes for django_extensions_models-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab87073524a35e46d5fb712e0c2482ef1f20a521d5ebfd3d5624b8e0f81203d4 |
|
MD5 | feb04f78d213f4182bb482795f793630 |
|
BLAKE2b-256 | 61db5dfe61e108e5ef47debed37e837f35e0ac46c0152b48526bb86fab73b8a0 |