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

Store OPTIONS requests into viewset's self.action #3115

Closed
normanjaeckel opened this issue Jul 6, 2015 · 3 comments
Closed

Store OPTIONS requests into viewset's self.action #3115

normanjaeckel opened this issue Jul 6, 2015 · 3 comments
Assignees
Milestone

Comments

@normanjaeckel
Copy link

normanjaeckel commented Jul 6, 2015

At the moment, self.action is None in viewsets if I get an OPTIONS request. I think I can inspect self.request.method.lower() but it would be nice if it is also in self.actions so I can use it as generic point for customized viewset code (customized permission checks in our case: OpenSlides/OpenSlides#1595).

@tomchristie
Copy link
Member

tomchristie commented Jul 15, 2015

Reopening this until 538ffaf has been addressed.

@tomchristie tomchristie self-assigned this Jul 15, 2015
@catskul
Copy link

catskul commented Jul 16, 2015

I believe I've fixed it here:
#3158

@tomchristie
Copy link
Member

tomchristie commented Jul 16, 2015

And, resolved again.

@tomchristie tomchristie modified the milestones: 3.1.4 Release, 3.2.0 Release Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants