Browse files

Fixed indentation of example in tutuorial 2.

  • Loading branch information...
1 parent b5f5264 commit 2110b3136552493fe7771c98f8ffb012d8bb5538 @pelson pelson committed with timgraham Oct 22, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 docs/intro/tutorial02.txt
View
14 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

0 comments on commit 2110b31

Please sign in to comment.