Skip to main content

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)

Uploaded Source

Built Distribution

django_loggable-0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file django-loggable-0.3.tar.gz.

File metadata

File hashes

Hashes for django-loggable-0.3.tar.gz
Algorithm Hash digest
SHA256 af2fca05750c50aa4bc86b01ef09388d2f55b36fdcf521839d07c1ee84bf869d
MD5 ac1ca7bc1422c3c62c838aaa17e4e57c
BLAKE2b-256 d98be47e4f1dba4356cd0cfab3d1eb8487c2e0ae613e7f4329ee2bc641a86ca7

See more details on using hashes here.

File details

Details for the file django_loggable-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_loggable-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1d5e322414a5bd7bb26744eb59df33aaf246be8ca9bafb90da36b8adecea7f95
MD5 22a2b5efd6b013bf8de240358a03a774
BLAKE2b-256 dbff16415ef4e5cdc9cf288aa035d4f6fcfb910d22b2bdfa5a7d42cf86225250

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page