Opened 9 years ago

Closed 9 years ago

#12053 closed (wontfix)

Support url resolver returning RegexURLPattern instances

Reported by: miracle2k Owned by: nobody
Component: Core (Other) Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I wonder if it would be feasible to somehow allow django.core.urlresolvers.resolve() to return the full RegexURLPattern instances stored, rather than just the actual callback (view).

I stumbled over this will trying to determine the currently active item in a menu. The menu items store the "name" of the urlpattern they link to, and this feature would allow me to resolve the current request.path, and compare the name of the handling url to each menu item.

Change History (4)

comment:1 Changed 9 years ago by miracle2k

comment:2 Changed 9 years ago by Luke Plant

Resolution: fixed
Status: newclosed

(In [12086]) Fixed #12053 - form examples don't validate according to w3c

Thanks to skyl for the report.

comment:3 Changed 9 years ago by Luke Plant

Resolution: fixed
Status: closedreopened

Oops, typo in commit message. [12086] actually fixed #12503.

comment:4 Changed 9 years ago by Russell Keith-Magee

Resolution: wontfix
Status: reopenedclosed

Marking wontfix because I'm not clear how you think this would work. Trac isn't a good place for bouncing around abstract ideas; either make a concrete proposal, or discuss on django-dev until you have a concrete proposal.

Note: See TracTickets for help on using tickets.
Back to Top