relocate base View class to views.base from views.generic.base
|Reported by:||Preston Holmes||Owned by:||Preston Holmes|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Much thought went into the technique used for exposing a python class to the URLconf and making it sane in the context of the View contract in a thread safe way.
However, the base class, View, is located in the generic module, implying that it is somehow tied to generic views.
I propose that this base class is a good default for anyone doing class-based views in Django, and that its use outside the context of generic views should be made explicitly obvious by relocating the location of the code outside of the generic views module.
Change History (10)
comment:5 Changed 5 years ago by
|Owner:||changed from nobody to Preston Holmes|
|Status:||new → assigned|