summaryrefslogtreecommitdiff
path: root/docs/topics/class-based-views
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-01-15 06:29:53 -0500
committerTim Graham <timograham@gmail.com>2013-01-15 07:52:06 -0500
commit360676d9d86ed36a2ffcf1318904b2b56cfae641 (patch)
tree3fca3eae2f65e48c1d25a90c016d4be83f276d37 /docs/topics/class-based-views
parent5a53f1043cc86feef82864e4f5a57de78d57664b (diff)
[1.5.x] Fixed #19605 - Removed unused url imports from doc examples.
Thanks sergzach for the suggestion. Backport of 43f89e0ad6 from master
Diffstat (limited to 'docs/topics/class-based-views')
-rw-r--r--docs/topics/class-based-views/generic-display.txt2
-rw-r--r--docs/topics/class-based-views/index.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/class-based-views/generic-display.txt b/docs/topics/class-based-views/generic-display.txt
index dac45c8843..835ca07459 100644
--- a/docs/topics/class-based-views/generic-display.txt
+++ b/docs/topics/class-based-views/generic-display.txt
@@ -110,7 +110,7 @@ Now we need to define a view::
Finally hook that view into your urls::
# urls.py
- from django.conf.urls import patterns, url, include
+ from django.conf.urls import patterns, url
from books.views import PublisherList
urlpatterns = patterns('',
diff --git a/docs/topics/class-based-views/index.txt b/docs/topics/class-based-views/index.txt
index 54d4b0f252..302f473eea 100644
--- a/docs/topics/class-based-views/index.txt
+++ b/docs/topics/class-based-views/index.txt
@@ -37,7 +37,7 @@ URLconf. If you're only changing a few simple attributes on a class-based view,
you can simply pass them into the
:meth:`~django.views.generic.base.View.as_view` method call itself::
- from django.conf.urls import patterns, url, include
+ from django.conf.urls import patterns
from django.views.generic import TemplateView
urlpatterns = patterns('',
@@ -73,7 +73,7 @@ point the URL to the :meth:`~django.views.generic.base.View.as_view` class
method instead, which provides a function-like entry to class-based views::
# urls.py
- from django.conf.urls import patterns, url, include
+ from django.conf.urls import patterns
from some_app.views import AboutView
urlpatterns = patterns('',