Fixed indentation of example in tutuorial 2.

This commit is contained in:
Phil Elson 2013-10-22 10:19:38 +01:00 committed by Tim Graham
parent b5f52647fe
commit 2110b31365
1 changed files with 7 additions and 7 deletions

View File

@ -218,15 +218,15 @@ aren't commonly used:
.. snippet::
:filename: polls/admin.py
from django.contrib import admin
from polls.models import Question
from django.contrib import admin
from polls.models import Question
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
]
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
]
.. image:: _images/admin09.png
:alt: Fieldset is initially collapsed