diff --git a/README.md b/README.md index 24efc8a..6eba051 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Simple terms and condition notify app ## Install ```shell -$ pip install -e git+https://github.com/rouxcode/django-tac@0.1.2#egg=django-tac +$ pip install -e git+https://github.com/rouxcode/django-tac@0.1.3#egg=django-tac ``` ## Usage diff --git a/tac/__init__.py b/tac/__init__.py index a1b7b12..1bb24fa 100644 --- a/tac/__init__.py +++ b/tac/__init__.py @@ -1,5 +1,5 @@ from __future__ import unicode_literals -__version__ = '0.1.2' +__version__ = '0.1.3' default_app_config = 'tac.apps.TACConfig' diff --git a/tac/templatetags/tac_tags.py b/tac/templatetags/tac_tags.py index 5815ac1..59ee30d 100644 --- a/tac/templatetags/tac_tags.py +++ b/tac/templatetags/tac_tags.py @@ -3,7 +3,10 @@ from django import template from django.conf import settings from django.core.exceptions import ImproperlyConfigured -from django.urls import reverse +try: + from django.urls import reverse +except Exception: + from django.core.urlresolvers import reverse from django.utils.translation import get_language from .. import conf