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.2.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for django_loggable-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e53c8947a778ed5fa822b07cc21089a9b56ca55275b98782b0684f3d29fbaa4 |
|
MD5 | bc46dff0a1776b2573ddd108f99fe8a1 |
|
BLAKE2b-256 | 883cef79750b710eff32f3d813cf386bc7a562dbf8fe47f44cf547feb3bb098e |