Fixed #8558 -- Removed a stray line in tutorial 2 left over from when it was
rewritten for the new admin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a516ebdff1
commit
c849fcc66d
|
@ -264,7 +264,6 @@ Poll object. Let's make that happen.
|
|||
Remove the ``register()`` call for the Choice model. Then, edit the ``Poll``
|
||||
registration code to read::
|
||||
|
||||
poll = models.ForeignKey(Poll, edit_inline=models.STACKED, num_in_admin=3)
|
||||
class ChoiceInline(admin.StackedInline):
|
||||
model = Choice
|
||||
extra = 3
|
||||
|
|
Loading…
Reference in New Issue