Re: self.request in APIView

2020-01-15 Thread Yiran Hu
Yes that makes sense! On Wednesday, January 15, 2020 at 7:57:45 AM UTC-5, Jason wrote: > > `create` is the direct handler for any POST requests that come in. So, it > needs to have `request` in there, because its a subclass of > `django.views.generic.View` View handlers need to implement the p

Re: self.request in APIView

2020-01-15 Thread Jason
`create` is the direct handler for any POST requests that come in. So, it needs to have `request` in there, because its a subclass of `django.views.generic.View` View handlers need to implement the parameter contract that Django specifes. This is hit after all post-request middleware has exec