When I attempt to use the decorator logic, the view becomes this:

views.py
@institution_required
def list_type(request):

    inst_id=request.session.get('inst_id',None)

    queryset = RecordType.objects.filter(institution=inst_id)
    return object_list(request, queryset, paginate_by = 12)

I don't make any changes to urls.py, but the error is
"TemplateSyntaxError at /index
Caught ImproperlyConfigured while rendering: The included urlconf
person.urls doesn't have any patterns in it"
However, when I take out the decorator, all of the urls work as
expected.

urls.py does import * from views.py

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to