﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14557	Generic View improvment	pyrou	nobody	"Hi,

Maybe adding a {{{__call__}}} method to {{{django.views.generic.View}}} — source:django/trunk/django/views/generic/base.py — can be useful

something like 

{{{
    def __call__(self, request, *args, **kwargs):
        return self.dispatch(request, *args, **kwargs)
}}}


it will allow to use a genric View ""instance"" as a view... (hum.. what can be more logical?)

{{{
url(r'^permlist/$', ListView(model=Permission, template_name=""default/list.html"")), 
}}}

in addition to (instead of?) the current {{{View.as_view()}}} ""factory""

{{{
url(r'^permlist/$', ListView.as_view(model=Permission, template_name=""default/list.html"")),
}}}

The sanity check has also to be moved to the {{{View.__init__()}}} method. Have a look to the attached file
"		closed	Generic views	dev		wontfix			Unreviewed	0	0	0	0	0	0
