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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26c7609080ebdfbcd9ea6290e96a9e9bcf83ee2426cf11ac1bd830e711be9ac |
|
MD5 | f7bc18fe20d10b9c355695acda0894e1 |
|
BLAKE2b-256 | e2700d84bfa6f685d9bdce696d9188f5450efd8cf8a2ae633fc744a16b9ced49 |
Close
Hashes for django_extensions_models-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd481d012d96fb194233a3f6184008d008312e50baa263584d14d5e3775b63c |
|
MD5 | 5111ab13d4b61b81a5f83a914ece4b24 |
|
BLAKE2b-256 | b7accaf6caba944d7ed6f990d5abf59178310f37babeb62dd56fb522c18dd6f0 |