From 3e3273fd974703ab627a66854e87b8bc1662eff3 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Tue, 22 Jul 2025 16:54:12 +0200 Subject: [PATCH] Fixes 2151 -- Forwarded args and kwargs in URLMixin.url --- debug_toolbar/panels/staticfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug_toolbar/panels/staticfiles.py b/debug_toolbar/panels/staticfiles.py index 4a0397a02..6ec3d84b3 100644 --- a/debug_toolbar/panels/staticfiles.py +++ b/debug_toolbar/panels/staticfiles.py @@ -16,8 +16,8 @@ class URLMixin: - def url(self, path): - url = super().url(path) + def url(self, path, *args, **kwargs): + url = super().url(path, *args, **kwargs) with contextlib.suppress(LookupError): # For LookupError: # The ContextVar wasn't set yet. Since the toolbar wasn't properly