Django app to add created and modified
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.