[Django] #29941: assign to user_type variable explicitly

15 views
Skip to first unread message

Django

unread,
Nov 9, 2018, 7:40:49 PM11/9/18
to django-...@googlegroups.com
#29941: assign to user_type variable explicitly
------------------------------------------------+------------------------
Reporter: mudgil | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
In the examples on the permalink
https://docs.djangoproject.com/en/2.1/ref/contrib/contenttypes/#django.contrib.contenttypes.models.ContentType.model_class,
the example:
ContentType.objects.get(app_label="auth", model="user") should be assigned
to variable user_type first because the examples that follow it use it:

user_type.model_class()

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

Django

unread,
Nov 9, 2018, 7:50:35 PM11/9/18
to django-...@googlegroups.com
#29941: assign to user_type variable explicitly
-------------------------------------+-------------------------------------
Reporter: Varun Mudgil | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 2.1
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage:
| Unreviewed
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:"0b98e8fdad48a33aa34cc84d9bf0c3cd41c56ec6" 0b98e8fd]:
{{{
#!CommitTicketReference repository=""
revision="0b98e8fdad48a33aa34cc84d9bf0c3cd41c56ec6"
Fixed #29941 -- Fixed missing variable in
docs/ref/contrib/contenttypes.txt.

Regression in b47552b445547e60cc89213f79e02333cb63f270.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29941#comment:1>

Django

unread,
Nov 9, 2018, 7:52:42 PM11/9/18
to django-...@googlegroups.com
#29941: assign to user_type variable explicitly
-------------------------------------+-------------------------------------
Reporter: Varun Mudgil | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 2.1
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage:
| Unreviewed
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:"8bc244bd576b0f779e29d62d19fbbdee1c4d7e39" 8bc244bd]:
{{{
#!CommitTicketReference repository=""
revision="8bc244bd576b0f779e29d62d19fbbdee1c4d7e39"
[2.1.x] Fixed #29941 -- Fixed missing variable in
docs/ref/contrib/contenttypes.txt.

Regression in b47552b445547e60cc89213f79e02333cb63f270.

Backport of 0b98e8fdad48a33aa34cc84d9bf0c3cd41c56ec6 from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29941#comment:2>

Reply all
Reply to author
Forward
0 new messages