#30755: Arguments to django.views.generic.base.View.as_view()
-----------------------------------------+------------------------
Reporter: David Szotten | Owner: nobody
Type: Uncategorized | Status: new
Component: Generic views | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
`django.views.generic.base.View.as_view()` raises a `TypeError` if passed
a kwarg that's not already an attribute to the class
https://github.com/django/django/blame/master/django/views/generic/base.py#L57
From the git blame i can't tell what the reason for this is. Is it only to
catch potential mistakes/typos?
If so, would we be open to also accepting attributes in
`cls.__annotations__`?
--
Ticket URL: <https://code.djangoproject.com/ticket/30755>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.f883e7b2667f44f48e915ba81d89e7d2%40djangoproject.com.