Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save() method of Models does not support update_fields with non-rel backends #16

Open
ahmedtalhakhan opened this issue Jan 14, 2015 · 0 comments

Comments

@ahmedtalhakhan
Copy link

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 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant