Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #17024 -- Added import statements in tutorial code sample

  • Loading branch information...
commit c446bdee84efe42f5c0bbfee16986a80c83ec9a2 1 parent 2c2c8a6
Claude Paroz authored June 30, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  docs/intro/tutorial02.txt
5  docs/intro/tutorial02.txt
@@ -113,8 +113,8 @@ Just one thing to do: We need to tell the admin that ``Poll``
113 113
 objects have an admin interface. To do this, create a file called
114 114
 ``admin.py`` in your ``polls`` directory, and edit it to look like this::
115 115
 
116  
-    from polls.models import Poll
117 116
     from django.contrib import admin
  117
+    from polls.models import Poll
118 118
 
119 119
     admin.site.register(Poll)
120 120
 
@@ -283,6 +283,9 @@ It'd be better if you could add a bunch of Choices directly when you create the
283 283
 Remove the ``register()`` call for the ``Choice`` model. Then, edit the ``Poll``
284 284
 registration code to read::
285 285
 
  286
+    from django.contrib import admin
  287
+    from polls.models import Poll
  288
+
286 289
     class ChoiceInline(admin.StackedInline):
287 290
         model = Choice
288 291
         extra = 3

0 notes on commit c446bde

Please sign in to comment.
Something went wrong with that request. Please try again.