Added namespace to the url_period tag in the Mia core application.
This commit is contained in:
parent
24db1af175
commit
062f4422d1
@ -68,7 +68,8 @@ def url_period(context: RequestContext, period_spec: str) -> str:
|
|||||||
context.request.resolver_match.url_name)
|
context.request.resolver_match.url_name)
|
||||||
kwargs = context.request.resolver_match.kwargs.copy()
|
kwargs = context.request.resolver_match.kwargs.copy()
|
||||||
kwargs["period"] = period_spec
|
kwargs["period"] = period_spec
|
||||||
return reverse(view_name, kwargs=kwargs)
|
namespace = context.request.resolver_match.namespace
|
||||||
|
return reverse(view_name, kwargs=kwargs, current_app=namespace)
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag(takes_context=True)
|
@register.simple_tag(takes_context=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user