Django - DRF - dispatch method flow

后端 未结 1 627
小鲜肉
小鲜肉 2021-01-28 14:41

I am working with DRF to build an API and I used a master class to do some validations to my class based views:

class MasterClass(APIView):

    def dispatch(sel         


        
相关标签:
1条回答
  • 2021-01-28 15:28

    Since you didn't provide the dispatch method code it'll just be guesses. My 2 cents is that you're calling MasterClass's super at some point which will call the APIView dispatch which will call your POST.

    0 讨论(0)
提交回复
热议问题