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

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy