[Django] #22737: Ability to implicitly preappend current_app to reverse URL resolution.

13 views
Skip to first unread message

Django

unread,
May 30, 2014, 3:01:20 PM5/30/14
to django-...@googlegroups.com
#22737: Ability to implicitly preappend current_app to reverse URL resolution.
-----------------------------+--------------------
Reporter: CVi | Owner: nobody
Type: New feature | Status: new
Component: Core (URLs) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
I want to be able to implicitly preappend the current_app as a namespace
to some URL reverse-resolutions.

My suggestion would be that names starting with a colon ':' (e.g. empty
string as first level namespace) implies current_app if present.

A very simple 2-line solution can be found
[https://github.com/CVi/django/commit/c501c522edebec5fc4d2312c6ec8f7a50fa8ddcd
on my github page]

The question is if this breaches any philosophies of Django. There's no
reason for me to create an elaborate patch including additional tests for
this, if it's going to be cut down for political/design reasons. Therefore
I am not ticking "has patch" just yet.

The possible use-cases for this is template reuse and making applications
modular by simply splitting them up. (my use case covers both)

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

Django

unread,
Jun 2, 2014, 11:44:41 AM6/2/14
to django-...@googlegroups.com
#22737: Ability to implicitly preappend current_app to reverse URL resolution.
-----------------------------+--------------------------------------

Reporter: CVi | Owner: nobody
Type: New feature | Status: new
Component: Core (URLs) | Version: master
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
-----------------------------+--------------------------------------
Changes (by timo):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

Design decisions are usually made on the
[https://groups.google.com/forum/#!forum/django-developers django-
developers mailling list]. I would post this idea there to get feedback.

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

Django

unread,
Jun 24, 2014, 7:46:31 AM6/24/14
to django-...@googlegroups.com
#22737: Ability to implicitly preappend current_app to reverse URL resolution.
-----------------------------+--------------------------------------
Reporter: CVi | Owner: nobody
Type: New feature | Status: closed

Component: Core (URLs) | Version: master
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* status: new => closed
* resolution: => needsinfo


Comment:

Closing as "needs info" until the discussion happens.

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

Reply all
Reply to author
Forward
0 new messages