Re: [Django] #35244: URL resolution does not work with a namespaced function reference. (was: URL resolution does not work when giving a function reference if it is listed in `urls` with `app_name`)

2 views
Skip to first unread message

Django

unread,
Feb 22, 2024, 12:10:23 AM2/22/24
to django-...@googlegroups.com
#35244: URL resolution does not work with a namespaced function reference.
-------------------------------------+-------------------------------------
Reporter: Willem Van Onsem | Owner: nobody
Type: New feature | Status: closed
Component: Core (URLs) | Version: 5.0
Severity: Normal | Resolution: duplicate
Keywords: urls, resolve, | Triage Stage:
reverse, resolution | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => duplicate
* status: new => closed
* summary:
URL resolution does not work when giving a function reference if it is
listed in `urls` with `app_name`
=> URL resolution does not work with a namespaced function reference.
* type: Uncategorized => New feature

Comment:

In the future, please include a complete ticket description and don't
force reviewers to investigate what you actually want to report. You also
didn't include any test which makes it even more difficult to understand
what you want to accomplish.

As far as I'm aware it's about passing a view to the `reverse()` which is
officially discouraged in the docs (especially for namespaced views).

Duplicate of #17914.
--
Ticket URL: <https://code.djangoproject.com/ticket/35244#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages