this library adds 'created_at', 'updated_at' and 'delete_at' fields like a rail apps in django, also added soft delete method
Project description
this library adds ‘created_at’, ‘updated_at’ and ‘delete_at’ fields like a rail apps in django, also added soft delete method.
install
pip install django-loggable
How to start
1.- Add to django-loggable in the django apps:
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', ... 'django-loggable' ... ]
2.- Extends LoggableModel in the model to use:
class MyModel(LoggeableModel): field = models.CharField(max_length=20)
3.- Add to django-admin:
class ContactAdmin(LoggeableAdmin): pass ... admin.site.register(Contact, ContactAdmin)
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
django-loggable-0.1.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for django_loggable-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cc880b61920e5b8a8b4e21bf4fe10ef19723c0e27fe66967ec37a36360e5afe |
|
MD5 | bbc42619be38c5431a4cbce71665e997 |
|
BLAKE2b-256 | 1a6534123738b0c27280f1ea81de3e88253e438eae2c91af83448ee4de0b3df6 |