Paginator must be imported if one wants to use it.

This commit is contained in:
Bradley M. Kuhn 2015-03-04 15:06:13 -08:00
parent 8f4c8a69d6
commit b7316e0555

View file

@ -2,6 +2,7 @@ from models import Entry, EntryTag # relative import
# from django.views.generic.list_detail import object_list # from django.views.generic.list_detail import object_list
from django.views.generic import ListView from django.views.generic import ListView
from django.views.generic.dates import YearArchiveView, MonthArchiveView, DayArchiveView, DateDetailView from django.views.generic.dates import YearArchiveView, MonthArchiveView, DayArchiveView, DateDetailView
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from conservancy.apps.staff.models import Person from conservancy.apps.staff.models import Person
from django.shortcuts import get_object_or_404, render_to_response from django.shortcuts import get_object_or_404, render_to_response
from datetime import datetime from datetime import datetime