[Django] #32755: Update example for get_absolute_url() in the documentation

0 views
Skip to first unread message

Django

unread,
May 17, 2021, 5:16:01 PM5/17/21
to django-...@googlegroups.com
#32755: Update example for get_absolute_url() in the documentation
-----------------------------------------+------------------------
Reporter: aruseni | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Currently, in the example for `get_absolute_url()`
[https://docs.djangoproject.com/en/3.2/ref/models/instances/#get-absolute-
url in the documentation], a view path string is passed to `reverse()`.
But this not supported since Django 1.10.

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

Django

unread,
May 17, 2021, 5:18:39 PM5/17/21
to django-...@googlegroups.com
#32755: Update example for get_absolute_url() in the documentation
-------------------------------+--------------------------------------

Reporter: aruseni | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.2
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by aruseni:

Old description:

> Currently, in the example for `get_absolute_url()`
> [https://docs.djangoproject.com/en/3.2/ref/models/instances/#get-

> absolute-url in the documentation], a view path string is passed to


> `reverse()`. But this not supported since Django 1.10.

New description:

Currently, in the example for `get_absolute_url()`
[https://docs.djangoproject.com/en/3.2/ref/models/instances/#get-absolute-
url in the documentation], a view path string is passed to `reverse()`.

But this is not supported since Django 1.10.

--

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

Django

unread,
May 17, 2021, 7:03:22 PM5/17/21
to django-...@googlegroups.com
#32755: Correct broken example for Model.get_absolute_url()
-------------------------------+------------------------------------
Reporter: aruseni | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 3.2
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 Tim Graham):

* type: Uncategorized => Bug
* component: Uncategorized => Documentation
* easy: 0 => 1
* stage: Unreviewed => Accepted


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

Django

unread,
May 17, 2021, 10:16:43 PM5/17/21
to django-...@googlegroups.com
#32755: Correct broken example for Model.get_absolute_url()
-------------------------------+-------------------------------------------
Reporter: aruseni | Owner: Girish Sontakke
Type: Bug | Status: assigned

Component: Documentation | Version: 3.2
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 Girish Sontakke):

* owner: nobody => Girish Sontakke
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/32755#comment:3>

Django

unread,
May 18, 2021, 4:14:30 AM5/18/21
to django-...@googlegroups.com
#32755: Correct broken example for Model.get_absolute_url()
-------------------------------+-------------------------------------------
Reporter: aruseni | Owner: Girish Sontakke
Type: Bug | Status: assigned
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------------
Changes (by Mariusz Felisiak):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/14409 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/32755#comment:4>

Django

unread,
May 18, 2021, 5:30:54 AM5/18/21
to django-...@googlegroups.com
#32755: Correct broken example for Model.get_absolute_url()
-------------------------------+-------------------------------------------
Reporter: aruseni | Owner: Girish Sontakke
Type: Bug | Status: closed
Component: Documentation | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"27d4573d35935bff83c28bfd68a2ce5a7a6c600a" 27d4573d]:
{{{
#!CommitTicketReference repository=""
revision="27d4573d35935bff83c28bfd68a2ce5a7a6c600a"
Fixed #32755 -- Corrected Model.get_absolute_url() example in docs.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32755#comment:5>

Django

unread,
May 18, 2021, 5:31:31 AM5/18/21
to django-...@googlegroups.com
#32755: Correct broken example for Model.get_absolute_url()
-------------------------------+-------------------------------------------
Reporter: aruseni | Owner: Girish Sontakke
Type: Bug | Status: closed
Component: Documentation | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"65b680a99a86c71eaf554b74639522ea747b8feb" 65b680a9]:
{{{
#!CommitTicketReference repository=""
revision="65b680a99a86c71eaf554b74639522ea747b8feb"
[3.2.x] Fixed #32755 -- Corrected Model.get_absolute_url() example in
docs.

Backport of 27d4573d35935bff83c28bfd68a2ce5a7a6c600a from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32755#comment:6>

Reply all
Reply to author
Forward
0 new messages