Support url resolver returning RegexURLPattern instances
|Reported by:||miracle2k||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.