Skip to content

Commit

Permalink
Fix url resolver inheritance [refs #40]
Browse files Browse the repository at this point in the history
  • Loading branch information
st4lk committed Feb 4, 2017
1 parent a8adba8 commit f8b8e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solid_i18n/urlresolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8b8e16

Please sign in to comment.