﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35499	Issue with auto_now=True DateTimefield and update_fields	Mohamed El-Kalioby	nobody	"Let's assume we have the following model

    
{{{
class Order(models.Model):
     name = models.Charfield(max_length=25)
     status = models.CharField(max_length=50, default=""Received"")
     order_date = models.DateTimeField(auto_now_add=True)
     last_update = models.DateTimeField(auto_now=True)
}}}


Now in one of the views, we want to update the status to ""Ready for Shipping"" so we write the following
 
            
{{{
order.status = ""Ready to Shipping""
order.save(update_fields=['status'])
}}}


The issue now is that the '**last_update**' field won't be updated in the database as it was NOT included in the `update_fields`. Which I think is dangerous as now the developer has to add the field manually, and even there is no warning or exception that he/she didn't add last_update field

"	Bug	closed	Database layer (models, ORM)	4.2	Normal	duplicate			Unreviewed	0	0	0	0	0	0
