[Fixed]-Difference between self.request and request in Django class-based view


For a subclass of View, they’re the same object. self.request = request is set in view function that as_view() returns. I looked into the history, but only found setting self.request and then immediately passing request into the view function.

Leave a comment