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.2.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for django_loggable-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c9977c1f320e59684c333f81922ab3015d5c43ed74067ff5a0bb254a2e08bf |
|
MD5 | 8decf26eacf9e15b2df046522b6f6dd0 |
|
BLAKE2b-256 | 0a3f7492a52f2a7de006d2ec7d163bd9984c12916c18d3900957d3534dbe71c7 |