DateTimeField(auto_now=True) does not change when update is called
|Reported by:||mklauber||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.2|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
According to documentation, the auto_now property of a DateTimeField is supposed to be useful for tracking last modified dates. However, when
Type.objects.filter(property1="value1").update(property2="value2") is called these fields are not updated. While the documentation does state that this value is changed when save() is called, the expected behavior is that any change to the record would result in this field updating.