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

Ticket #33770: Add bulk_update() support for unique fields instead of only primary key #15764

Closed
wants to merge 1 commit into from

Conversation

ebram96
Copy link
Contributor

@ebram96 ebram96 commented Jun 6, 2022

Generalize bulk_update() to use a unique field instead of only using primary keys.
We only need a unique field to update a model instance, it doesn't necessarily have to be the primary key.

TODO: Writing tests if this idea seems good to you.

Ticket: https://code.djangoproject.com/ticket/33770#ticket

@ebram96 ebram96 changed the title Add bulk_update() support for unique fields instead of only primary key Ticket #33770: Add bulk_update() support for unique fields instead of only primary key Jun 6, 2022
@carltongibson
Copy link
Member

Closing as per ticket.

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