Skip to main content
https://travis-ci.org/achedeuzot/django-timestampable.svg?branch=master https://coveralls.io/repos/github/achedeuzot/django-timestampable/badge.svg?branch=master

Django Timestampable model is a simple enhancement mixin that enables Django models to have a created_at and updated_at field that is always updated.

This has been done under many plugins BUT the main difference between this plugin and the many others out there that do the same, is that Django Timestampable Models update the updated_at field under any circumstance: fixture loading, bulk updates, etc. whereas traditional Timestampable mixins only provide shorthand for auto_add and auto_add_now shortcuts for DateTimeField s.

It achieves this by using Django signals.

Quick start

  1. Add “django_timestampable” to your INSTALLED_APPS settings like this:

INSTALLED_APPS = [
    ...
    'django_timestampable',
]
  1. Add TimestampableModel in your Model s like so:

class Stuff(TimestampableModel):

    some_attribute = CharField()

    ...

3. Run python manage.py makemigrations then python manage.py migrate to add the columns to your models in your database.

Requirements

No dependencies.

Tested on Django 1.9.9, 1.10.1 with Python 2.7, 3.4, 3.5

Release files for django-timestampable-model 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-timestampable-model 0.1.4
File Size Uploaded
django-timestampable-model-0.1.4.tar.gz 4.6 kB Details

Release files / django-timestampable-model-0.1.4.tar.gz

Download URL django-timestampable-model-0.1.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
79e2ae5aeba69fdddf1c15ed791c6daaa68a922937b29f9eb7d6d799656c5879
BLAKE2b-256 checksum
How to use checksums
9da1b35faaec2cc20da2b659552c7e63bc4f89f2b1dc59ced384979ce9ca90cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page