Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed indentation of example in tutuorial 2.

  • Loading branch information...
commit 2110b3136552493fe7771c98f8ffb012d8bb5538 1 parent b5f5264
@pelson pelson authored timgraham committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.