Re: authentication on generic views

2007-10-26 Thread Marty Alchin
On 10/26/07, Hugh Bien <[EMAIL PROTECTED]> wrote: > I haven't really used generic views that often, but I know you could always > extend them by creating your own views. > > Inside your views.py: > > > from django.views.generic.list_detail import object_list > > @login_required > def

Re: authentication on generic views

2007-10-26 Thread Hugh Bien
I haven't really used generic views that often, but I know you could always extend them by creating your own views. Inside your views.py: from django.views.generic.list_detail import object_list @login_required def my_list(*args, **kwargs): return object_list(*args, **kwargs) - Hugh On

authentication on generic views

2007-10-25 Thread Mike Maravillo
Hi, I'm using the django.views.generic.list_detail.object_list generic view because of the handy pagination. However, I need to have the user accessing the page to be authenticated first. Is there any other way than doing the check on the template? Thanks very much. Mike