Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#23907 closed Cleanup/optimization (fixed)

tutorial02 code missing 'admin.site.register'

Reported by: Henk Kraal Owned by: nobody
Component: Documentation Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The code example below

---
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)

Change History (3)

comment:1 by Baptiste Mispelon, 10 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Hi,

I agree, we should add the register line.

Thanks.

comment:2 by Tim Graham <timograham@…>, 10 years ago

Resolution: fixed
Status: newclosed

In 1dbdc03382719d134effe262d3a028fd0ff3a7fd:

Fixed #23907 -- Added admin.site.register in tutorial 2 for consistency.

comment:3 by Tim Graham <timograham@…>, 10 years ago

In 299e7718cfbda4e0e1dabcfc96c37c71db83ac6d:

[1.7.x] Fixed #23907 -- Added admin.site.register in tutorial 2 for consistency.

Backport of 1dbdc03382 from master

Note: See TracTickets for help on using tickets.
Back to Top