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

update only fields document? #31

Open
fopinappb opened this issue Dec 2, 2021 · 0 comments
Open

update only fields document? #31

fopinappb opened this issue Dec 2, 2021 · 0 comments

Comments

@fopinappb
Copy link

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.

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)

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