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
File details
Details for the file time_stamped_model-0.2.12.tar.gz.
File metadata
- Download URL: time_stamped_model-0.2.12.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36c22d50d9c60429967773c0aed9902d7250031316efb8bd7c64cf48976f2bda
|
|
| MD5 |
aae1e28f3680071fb0fada813a925cb9
|
|
| BLAKE2b-256 |
40ce2a01ed32e7722f8977fe289d28d6993f4161a5a5574402c03de08e2ced24
|