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.3.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file django-loggable-0.3.tar.gz
.
File metadata
- Download URL: django-loggable-0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af2fca05750c50aa4bc86b01ef09388d2f55b36fdcf521839d07c1ee84bf869d |
|
MD5 | ac1ca7bc1422c3c62c838aaa17e4e57c |
|
BLAKE2b-256 | d98be47e4f1dba4356cd0cfab3d1eb8487c2e0ae613e7f4329ee2bc641a86ca7 |
File details
Details for the file django_loggable-0.3-py3-none-any.whl
.
File metadata
- Download URL: django_loggable-0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d5e322414a5bd7bb26744eb59df33aaf246be8ca9bafb90da36b8adecea7f95 |
|
MD5 | 22a2b5efd6b013bf8de240358a03a774 |
|
BLAKE2b-256 | dbff16415ef4e5cdc9cf288aa035d4f6fcfb910d22b2bdfa5a7d42cf86225250 |