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.
Source Distribution
Close
Hashes for time-stamped-model-0.2.11.tar.gz
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5ea68f67dee8494c291f8a0e0d878757e3b801fd6e9a766b21e66ea629aa8e70 |
|
| MD5 | bc6192fa2ea06d254dba7b77775bab79 |
|
| BLAKE2b-256 | d254ecf23525dfb773e841c4f99e39f198aee326bd25e877d6ee390bd35043da |