One option would be to create a custom management command 
(https://docs.djangoproject.com/en/1.9/howto/custom-management-commands/) 
that checks for models with a `created_at < now - 1month`. You could then 
run this, say once a day, using crontab 
(https://help.ubuntu.com/community/CronHowto). Here created_at is a 
`datetime` field with `auto_now_add=True`.

On Wednesday, 6 January 2016 13:07:30 UTC, salma.ess...@gmail.com wrote:
>
> I have a Django model with a Boolean field called New. During the model 
> creation it's set to True, but I want it to be updated automatically to 
> False after a certain period (1 month post creation for example). Can I use 
> signals here?
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b88f2d50-b3ea-4102-aeeb-de5d41979aa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to