I think the easiest way would be to have a timestamp var on the model
and then a simple method that uses datetime?
Also, check out django-model-utils - it has some nice timestamped model options
https://django-model-utils.readthedocs.org/en/latest/
cheers
L.
On 24 February 2014 01:59, Vittor
I would like to enable a user to insert and modify a record in a django model
for a specific stretch of time, say one hour, and,when this time's up (for
that specific record), the user shouldn't be allowed to modify or delete the
record. Another user (kind of a superuser) with higher permissio
2 matches
Mail list logo