mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Imported specific models in a few tests that didn't.
This commit is contained in:
@@ -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()),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user