Skip to content

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

@normanjaeckel

Description

@normanjaeckel

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).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions