---
You can assign arbitrary HTML classes to each fieldset. Django provides a
"collapse" class that displays a particular fieldset initially collapsed.
This is useful when you have a long form that contains a number of fields
that aren’t commonly used:
---
lacks the line:
admin.site.register(Question, QuestionAdmin)
--
Ticket URL: <https://code.djangoproject.com/ticket/23907>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
Hi,
I agree, we should add the `register` line.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/23907#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"1dbdc03382719d134effe262d3a028fd0ff3a7fd"]:
{{{
#!CommitTicketReference repository=""
revision="1dbdc03382719d134effe262d3a028fd0ff3a7fd"
Fixed #23907 -- Added admin.site.register in tutorial 2 for consistency.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23907#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"299e7718cfbda4e0e1dabcfc96c37c71db83ac6d"]:
{{{
#!CommitTicketReference repository=""
revision="299e7718cfbda4e0e1dabcfc96c37c71db83ac6d"
[1.7.x] Fixed #23907 -- Added admin.site.register in tutorial 2 for
consistency.
Backport of 1dbdc03382 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23907#comment:3>