django-model-mixin 
GitHub

Test

Check Demo Project
- Check the demo repo on GitHub
Requirements
- Python 3.9+ supported.
- Django 3.2+ supported.
Setup
- Install from pip:
pip install django-model-mixin
- Modify
settings.pyby adding the app toINSTALLED_APPS:
INSTALLED_APPS = [
"django.contrib.admin",
"model_mixin",
]
- Modify your project
models.pywith needed imports and class extends:
from model_mixin.models import AuditModelMixin, PublishModelMixin
class MyCustomClass(AuditModelMixin, PublishModelMixin):
pass
- Execute Django's command
makemigrationsinside your project's root:
python manage.py makemigrations
- Finally, execute Django's command
migrateinside your project's root:
python manage.py migrate
Run Example Project
git clone --depth=50 --branch=django-model-mixin https://github.com/DLRSP/example.git DLRSP/example
cd DLRSP/example
python manage.py runserver
Now browser the app @ http://127.0.0.1:8000
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_model_mixin-0.3.8.tar.gz
(18.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_model_mixin-0.3.8.tar.gz.
File metadata
- Download URL: django_model_mixin-0.3.8.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c8813372f4ea8f841b8ace9810591c58ec68bd7d3fe14620a95a079a1e0a381
|
|
| MD5 |
d6c875203ffd195cd5e8947e6a4a6cf8
|
|
| BLAKE2b-256 |
d51dd30bc7d5465c34e9f4fe6efbfa716c7e06e455ba10112fab614e001efeb3
|
File details
Details for the file django_model_mixin-0.3.8-py3-none-any.whl.
File metadata
- Download URL: django_model_mixin-0.3.8-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e459e779b3656b6790a07fbb57e258ee8720b4990bd4ee1fe13ebf7cfe001f
|
|
| MD5 |
f81f94b7f386d74265ca2393869191ea
|
|
| BLAKE2b-256 |
b33b738929303f20687f9b556c8c33e45988632bc9971e8f012ea6aebace7fbf
|