Automatically call as_view() when urlpatterns encounter a CBV.
|Reported by:||loic84||Owned by:|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||yes|
Calling as_view() for each CBV is not DRY and adds a fair amount of noise to urlpatterns.
I propose we check for the as_view attribute and automatically call it if present.
Change History (11)
comment:1 Changed 2 years ago by loic84
- Has patch set
- Needs documentation set
- Needs tests unset
- Owner changed from nobody to loic84
- Patch needs improvement set
- Status changed from new to assigned