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 my_list(*args
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 10/2
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
--~--~-~--~--
3 matches
Mail list logo