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:: .. snippet::
:filename: polls/admin.py :filename: polls/admin.py
from django.contrib import admin from django.contrib import admin
from polls.models import Question from polls.models import Question
class QuestionAdmin(admin.ModelAdmin): class QuestionAdmin(admin.ModelAdmin):
fieldsets = [ fieldsets = [
(None, {'fields': ['question_text']}), (None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}), ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
] ]
.. image:: _images/admin09.png .. image:: _images/admin09.png
:alt: Fieldset is initially collapsed :alt: Fieldset is initially collapsed