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

How to bulk update or delete objects? #237

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

How to bulk update or delete objects? #237

synergetic opened this issue Aug 16, 2013 · 4 comments

Comments

@synergetic
Copy link

@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
Copy link
Owner

@jfinkels 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.

Loading

@Nevon
Copy link

@Nevon Nevon commented Jun 21, 2014

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

Loading

@oiwn
Copy link

@oiwn oiwn 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.

Loading

jfinkels added a commit that referenced this issue Feb 2, 2015
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
Copy link
Owner

@jfinkels jfinkels commented Feb 2, 2015

Merged a fix in pull request #393.

Loading

@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants