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

How to bulk update or delete objects? #237

Closed
synergetic opened this Issue Aug 16, 2013 · 4 comments

Comments

Projects
None yet
4 participants
@synergetic

synergetic commented Aug 16, 2013

PUT_MANY or PATH_MANY seems to be used when multiple objects updated with the same data. Is it possible to bulk update or delete objects?

@jfinkels

This comment has been minimized.

Owner

jfinkels commented Sep 23, 2013

Would this allow filters for selecting which instances to delete as well? I'm not sure if deleting an entire collection of instances is a desirable feature.

@Nevon

This comment has been minimized.

Nevon commented Jun 21, 2014

I'm currently trying to do this, without much luck. Does anyone know how this could be implemented?

@istinspring

This comment has been minimized.

istinspring commented Jan 13, 2015

this is very usable, for example checkboxes on frontend and then modal Delete Yes/No next one request to the API to delete selected set of items.

jfinkels added a commit that referenced this issue Feb 2, 2015

Allow bulk deletion of model instances.
Introduces the `allow_delete_many` keyword argument to
`APIManager.create_api`, which indicates that requests to, for example,
`DELETE /api/person`, with optional search parameters in the `q` query
parameter, will bulk delete multiple instances of the Person model. This
mirrors the `allow_patch_many` behavior that already existed.

This fixes issue #237.
@jfinkels

This comment has been minimized.

Owner

jfinkels commented Feb 2, 2015

Merged a fix in pull request #393.

@jfinkels jfinkels closed this Feb 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment