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

delete collections via api #789

Open
jdkent opened this issue May 4, 2023 · 0 comments
Open

delete collections via api #789

jdkent opened this issue May 4, 2023 · 0 comments

Comments

@jdkent
Copy link
Contributor

jdkent commented May 4, 2023

relevant code to add delete functionality.

class MyCollectionsViewSet(CollectionViewSet):
permission_classes = (permissions.IsAuthenticated,)
def get_queryset(self):
return get_objects_for_user(self.request.user, "statmaps.change_collection")

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