Re: Running automated expiration date events

2016-02-09 Thread James Schneider
On Mon, Feb 8, 2016 at 10:18 AM, Rod Delaporte wrote: > I have a field of a model that changes states but I need to automatically > modify that value after an expiration datetime has come. Is there a way to > do this? > > Here is an example: > > class Post(models.Model): > created_at = models.Dat

Re: Running automated expiration date events

2016-02-08 Thread Luis Zárate
Maybe with celery and Django celery you can do what you want. There is a functionality called crontab that is manage by models with Django celery. So you can create cron task that will call when you need with a reference to you model. As an interesting problem, think in the moment of update you m

Running automated expiration date events

2016-02-08 Thread Rod Delaporte
I have a field of a model that changes states but I need to automatically modify that value after an expiration datetime has come. Is there a way to do this? Here is an example: class Post(models.Model): created_at = models.DateTimeField(auto_now_add=True) languages = ( ('1', 'activ