Skip to main content

Django app to add created and modified

Project description

PyPI version

Time Stamped Model

This package creates adds a created and modified field to your django modals.

To use

Add time-stamped-model to your installed apps

from time-stamped-model.modals import TimeStampedModel

class Foo(TimeStampedModel):
    bar = models.BooleanField(default=False)

Manual set

Sometimes you want to manual set the time. This may be required if you import data from another system.

To do this you can use the functions set_created_date and set_modified_date

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

time-stamped-model-0.2.9.tar.gz (5.1 kB view hashes)

Uploaded Source

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