#15070: url tag does not work within inclusion_tags when current_app is needed -----------------------------+---------------------------------------------- Reporter: raony | Owner: nobody Status: new | Milestone: Component: Template system | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 1 | -----------------------------+---------------------------------------------- suppose we deployed the same app two times (e.g., django-admin), each include in urls.py has tha namespace and app_name set.
now we create a custom tag (with the inclusion_tag function of Library) that renders a specific template which has an url tag trying to resolve an url from the mentioned app. then we create a view which set current_app on the RequestContext object and renders a template with the custom tag; the reverse inside the url_tag at the included template fails to resolve to the right app as if the current_app was not set. -- Ticket URL: <http://code.djangoproject.com/ticket/15070> Django <http://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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
