From fb857a8cc5cfdd39ec11de54bb53d5952266b019 Mon Sep 17 00:00:00 2001 From: Alexey Evseev Date: Sun, 5 Feb 2017 00:13:35 +0300 Subject: [PATCH] Fix url resolver inheritance [refs #40] --- solid_i18n/urlresolvers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solid_i18n/urlresolvers.py b/solid_i18n/urlresolvers.py index 57cbc4d..651d5a2 100644 --- a/solid_i18n/urlresolvers.py +++ b/solid_i18n/urlresolvers.py @@ -13,9 +13,9 @@ class SolidLocaleRegexURLResolver(LocaleRegexURLResolver): Rather than taking a regex argument, we just override the ``regex`` function to always return the active language-code as regex. """ - def __init__(self, urlconf_name, default_kwargs=None, app_name=None, namespace=None): - super(LocaleRegexURLResolver, self).__init__( - None, urlconf_name, default_kwargs, app_name, namespace) + def __init__(self, urlconf_name, *args, **kwargs): + super(SolidLocaleRegexURLResolver, self).__init__( + urlconf_name, *args, **kwargs) self.compiled_with_default = False @property