From f8b8e16781123cbdb03df2d9077be7806efd4fc5 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..d5e38fb 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__( + None, urlconf_name, *args, **kwargs) self.compiled_with_default = False @property