comparison gpp/weblinks/views.py @ 92:62eb9cbbcffc

Need an import for the InvalidPage exception from django.core.paginator.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Sep 2009 04:09:08 +0000
parents 884839ddbfde
children 952e05cb3d80
comparison
equal deleted inserted replaced
91:62af8cd8f57b 92:62eb9cbbcffc
5 import datetime 5 import datetime
6 import random 6 import random
7 from django.shortcuts import render_to_response 7 from django.shortcuts import render_to_response
8 from django.template import RequestContext 8 from django.template import RequestContext
9 from django.contrib import auth 9 from django.contrib import auth
10 from django.core.paginator import InvalidPage
10 from django.http import HttpResponseRedirect 11 from django.http import HttpResponseRedirect
11 from django.contrib.auth.decorators import login_required 12 from django.contrib.auth.decorators import login_required
12 from django.shortcuts import get_object_or_404 13 from django.shortcuts import get_object_or_404
13 from django.core.urlresolvers import reverse 14 from django.core.urlresolvers import reverse
14 from django.db.models import Q 15 from django.db.models import Q