Django Timestampable Models
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.
The main difference between this plugin and the many others out there that do the same, is that Django Timestampable Models updated 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.
Quick start
Add “django_timestampable” to your INSTALLED_APPS settings like this:
INSTALLED_APPS = [
...
'django_timestampable',
]
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 with Python 2.7.*
Metadata
Release files for django-timestampable-model 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-timestampable-model-0.1.2.tar.gz | 3.0 kB | Without provenance | Details for django-timestampable-model-0.1.2.tar.gz |
Release files / django-timestampable-model-0.1.2.tar.gz
| Download URL | django-timestampable-model-0.1.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28345b0b3bf3f5163384931d1576ff774eaeb0311e9d3d23594c1e5d912b3af0
|
|
BLAKE2b-256 checksum How to use checksums |
376f11deb6c53615dd0086d16cb24fef769e1501d7eda9669c5876dcf7a287bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-timestampable-model 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.