My Model has the following field. It has to update whenever there is a change in that model.
modified_at = models.DateTimeField(auto_now=True)
and I wrote a custom action to change the status of this model in the admin interface.
this particular field works fine for all kind of updates except the mentioned custom actions in the admin interface. Any ideas?
You can see in django’s documentation that
update()actually don’t callsave(). Thus, it’s pretty normal that the DateField is not updated byauto_now(which updates on save() calls)http://docs.djangoproject.com/en/1.2/ref/models/querysets/#update-kwargs