You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
save() call on models does not work correctly with update_fields...It still saves all the fields in a model. Looking at the code at ~/django/db/models/base.py in save_base, it seems that the param distinguishes_insert_from_update makes the code attempt inserts everytime and hence it forgets to take care of the fields specified in update_fields.. What can be the work around?
The text was updated successfully, but these errors were encountered:
Django version 1.5
Backend: Mongodb
save()
call on models does not work correctly with update_fields...It still saves all the fields in a model. Looking at the code at ~/django/db/models/base.py insave_base
, it seems that the paramdistinguishes_insert_from_update
makes the code attempt inserts everytime and hence it forgets to take care of the fields specified inupdate_fields
.. What can be the work around?The text was updated successfully, but these errors were encountered: