We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
update only fields
As update_fields is passed to bulk_update but ignored when falling back to .create, all the values from the object are used when creating.
update_fields
bulk_update
.create
This is actually documented in update_fields docs:
:param update_fields: fields that will be updated if record already exists (passed on to bulk_update)
but it's only implicit that .create will use object as passed, regardless of chosen fields, better to document the behavior (as it's a useful feature)
.create will use object as passed, regardless of chosen fields
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As
update_fields
is passed tobulk_update
but ignored when falling back to.create
, all the values from the object are used when creating.This is actually documented in
update_fields
docs:but it's only implicit that
.create will use object as passed, regardless of chosen fields
, better to document the behavior (as it's a useful feature)The text was updated successfully, but these errors were encountered: