[Django] #23907: tutorial02 code missing 'admin.site.register'

4 views
Skip to first unread message

Django

unread,
Nov 24, 2014, 3:43:47 PM11/24/14
to django-...@googlegroups.com
#23907: tutorial02 code missing 'admin.site.register'
-------------------------------+--------------------
Reporter: hkraal | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
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)

--
Ticket URL: <https://code.djangoproject.com/ticket/23907>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 24, 2014, 3:49:21 PM11/24/14
to django-...@googlegroups.com
#23907: tutorial02 code missing 'admin.site.register'
--------------------------------------+------------------------------------
Reporter: hkraal | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by bmispelon):

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

Django

unread,
Nov 24, 2014, 3:59:45 PM11/24/14
to django-...@googlegroups.com
#23907: tutorial02 code missing 'admin.site.register'
--------------------------------------+------------------------------------
Reporter: hkraal | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.7
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

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

Django

unread,
Nov 24, 2014, 4:00:11 PM11/24/14
to django-...@googlegroups.com
#23907: tutorial02 code missing 'admin.site.register'
--------------------------------------+------------------------------------
Reporter: hkraal | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages