Contains common application for Emtex
Project description
This contains utility like permissions, audit log etc.
Detailed documentation is in the “docs” directory.
How to install
Using pip:
pip install emtex_common_utils==0.3 or Add emtex_common_utils==0.3 in your requirements.txt file and then run: pip install -r requirements.txt
Quick start
Add “emtex_common_utils” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'emtex_common_utils', ]
Things available
Database Migrations:
python manage.py emtex_migrate --for_date="YYYY-MM-DD"
Logging:
from emtex_common_utils.models import BaseModel, BaseLogModel from emtex_common_utils.mixins import BaseModelMixin ... class MyModelLog(BaseLogModel): """ Model to log changes for model MyModel """ pass class MyModel(BaseModel, BaseModelMixin): """ Model which changes needs to be tracked. """ class Meta: log_fields = ( my_field1, my_field2, ... ) log_model_name = MyModelLog
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file emtex_common_utils-0.4.tar.gz
.
File metadata
- Download URL: emtex_common_utils-0.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fd657921a7cb095a0d0ca277ce0057570b95dfac61dd44044053d471f23034ef
|
|
MD5 |
2e233e8692e50126cc4c539f17318b79
|
|
BLAKE2b-256 |
c09d356ea00e2888b35ef63d6be93650b709eb0d956ff9f99224de957147442f
|