From 1303532f694b0ae67cbd86068aa6b4b42af66488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 12 Aug 2020 14:49:06 +0800 Subject: [PATCH] Fixed the url_period template tag to change on a copy of the request keyword arguments instead of the arguments of the request itself in the Mia core application. --- mia_core/templatetags/mia_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mia_core/templatetags/mia_core.py b/mia_core/templatetags/mia_core.py index bc5eab9..8273620 100644 --- a/mia_core/templatetags/mia_core.py +++ b/mia_core/templatetags/mia_core.py @@ -64,7 +64,7 @@ def url_period(context, period_spec): view_name = "%s:%s" % ( context.request.resolver_match.app_name, context.request.resolver_match.url_name) - kwargs = context.request.resolver_match.kwargs + kwargs = context.request.resolver_match.kwargs.copy() kwargs["period"] = period_spec return reverse(view_name, kwargs=kwargs)