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, Vittorio <ml-...@de-martino.it> wrote: > 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 permissions should be > enabled to modify or delete the record after that time has elapsed > Before starting to code a python script to obtain that I would like to know > if there is any Github or other "out-of-the-box"django package doing > something like that. > > Thanks a lot > Vittorio > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/71B6B30D-DF62-44D1-9DB6-EAB32D0E4029%40de-martino.it. > For more options, visit https://groups.google.com/groups/opt_out. -- >From this perspective it is natural that anarchism be marked by spontaneity, differentiation, and experimentation that it be marked by an expressed affinity with chaos, if chaos is understood to be what lies outside or beyond the dominant game or system. Because of the resistance to definition and categorisation, the anarchist principle has been variously interpreted as, rather than an articulated position, “a moral attitude, an emotional climate, or even a mood”. This mood hangs in dramatic tension between utopian hope or dystopian nihilism... ----- http://zuihitsu.org/godspeed-you-black-emperor-and-the-politics-of-chaos -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiPMsa97_NKO1zAa4%2Bg-VdQwcUCPuwL4GYFa0ukDXGbaEg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.