Answers for "how to use drf permission class with class method actions"

0

how to use drf permission class with class method actions

class SandwichViewSet(ModelViewSet):
  permission_classes = [IsAuthenticated]

  @action(..., permission_classes=[CanSeeIngredients])
  def retrieve__ingredients(self, request):
    ...
Posted by: Guest on January-30-2022

Code answers related to "how to use drf permission class with class method actions"

Python Answers by Framework

Browse Popular Code Answers by Language