summaryrefslogtreecommitdiff
path: root/tests/generic_views
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-08 11:00:14 -0500
committerTim Graham <timograham@gmail.com>2016-12-08 11:14:15 -0500
commite744c7e459bae0fbb656c70f368c7183fd7a6013 (patch)
tree813e82cf4f455b411dc5049fb31b805962d93b5b /tests/generic_views
parent9b79281e315268bdbba2704b253eef23b46da023 (diff)
downloaddjango-e744c7e459bae0fbb656c70f368c7183fd7a6013.tar.gz
Imported specific models in a few tests that didn't.
Diffstat (limited to 'tests/generic_views')
-rw-r--r--tests/generic_views/urls.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/generic_views/urls.py b/tests/generic_views/urls.py
index 288383e032..9f2d8429fc 100644
--- a/tests/generic_views/urls.py
+++ b/tests/generic_views/urls.py
@@ -7,7 +7,8 @@ from django.contrib.auth.decorators import login_required
from django.views.decorators.cache import cache_page
from django.views.generic import TemplateView
-from . import models, views
+from . import views
+from .models import Book
urlpatterns = [
# TemplateView
@@ -134,7 +135,7 @@ urlpatterns = [
url(r'^dates/books/paginated/$',
views.BookArchive.as_view(paginate_by=10)),
url(r'^dates/books/reverse/$',
- views.BookArchive.as_view(queryset=models.Book.objects.order_by('pubdate'))),
+ views.BookArchive.as_view(queryset=Book.objects.order_by('pubdate'))),
url(r'^dates/books/by_month/$',
views.BookArchive.as_view(date_list_period='month')),
url(r'^dates/booksignings/$',
@@ -207,7 +208,7 @@ urlpatterns = [
url(r'^dates/books/no_year/$',
views.BookYearArchive.as_view()),
url(r'^dates/books/(?P<year>[0-9]{4})/reverse/$',
- views.BookYearArchive.as_view(queryset=models.Book.objects.order_by('pubdate'))),
+ views.BookYearArchive.as_view(queryset=Book.objects.order_by('pubdate'))),
url(r'^dates/booksignings/(?P<year>[0-9]{4})/$',
views.BookSigningYearArchive.as_view()),