diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 710ae57737..6d0d50ed27 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -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