Hello all,
With reference to this
line:
https://github.com/django/django/blob/master/django/views/generic/base.py#L61
from django.view.generic.base
before calling self.dispatch request, args and kwargs attributes have been
added to self. So these all are available in self in http_method handlers.
I think this behaviour is present due to old functional views, but now
passing these as arguments to http_method handlers look obsolete.
We can potentially remove these and make http handlers more simple just like
class CustomView(View):
def get(self):
request =self.request
# code ...
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/8f7ece4f-e2c5-45a5-b35d-f4fd4e7d58f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.