get_prep_value isn't called on QuerySet.update()
|Reported by:||Sebastian Noack||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.0|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I had to note that get_prep_value() isn't called when calling QuerySet's update() method. This is a problem, since for example the DateTimeField calls value_to_db_datetime() which truncated milliseconds when using MySQL. Otherwise you get warning from the database server.