Fixed indentation of example in tutuorial 2.
This commit is contained in:
parent
b5f52647fe
commit
2110b31365
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue