#24906: ResolverMatch.app_name doesn't contain full application namespace for
nested namespaces
-----------------------------+--------------------
     Reporter:  knbk         |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:  Core (URLs)  |    Version:  1.8
     Severity:  Normal       |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+--------------------
 `ResolverMatch.app_name` only contains the outer-most application
 namespace in the case of nested namespaces. It should contain the full
 namespace path, separated by `:`, just like `ResolverMatch.namespace`.

 The documentation[1] is a bit ambiguous in this regard, but I was very
 much surprised when I found out this behaviour, and in my opinion it's a
 very obvious bug. The only internal use[2 and 3] would currently be
 incorrect in the case of nested namespaces. If it should instead follow
 the backwards compatibility guidelines because of the ambiguity in the
 docs, please mark it as such.

 [1]
 
https://docs.djangoproject.com/en/1.8/ref/urlresolvers/#django.core.urlresolvers.ResolverMatch.app_name
 [2]
 
https://github.com/django/django/blob/master/django/contrib/admin/options.py#L897
 [3]
 
https://github.com/django/django/blob/master/django/contrib/admin/templatetags/admin_urls.py#L38

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.66a640328e524834974807aba8dfcbff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to