How can i use middleware decorator for class-based view in djabgo?

后端 未结 0 1761
孤独总比滥情好
孤独总比滥情好 2021-01-06 00:15

How can i use middleware decorator for classbased view?

class APIViewMixin():
    apiMiddleware = decorator_from_middleware(APISecretMiddleware)

    @apiMidd         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题