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::
|
.. 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
|
||||||
|
|
Loading…
Reference in New Issue