diff --git a/.travis.yml b/.travis.yml index 262f1c6..b3bc1bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,10 +6,13 @@ python: env: - TOXENV=py34-django18 - TOXENV=py34-django19 + - TOXENV=py34-django110 - TOXENV=py35-django18 - TOXENV=py35-django19 + - TOXENV=py35-django110 - TOXENV=py27-django18 - TOXENV=py27-django19 + - TOXENV=py27-django110 install: pip install --quiet tox @@ -17,7 +20,7 @@ install: pip install --quiet tox script: tox after_script: - - if [ $TOXENV == "py27-django19" ]; then + - if [ $TOXENV == "py27-django110" ]; then pip install --quiet coveralls; coveralls; fi 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