Skip to content

Commit e9b1087

Browse files
committed
legacy support
1 parent 1f5eca6 commit e9b1087

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Simple terms and condition notify app
55

66
## Install
77
```shell
8-
$ pip install -e git+https://github.com/rouxcode/django-tac@0.1.2#egg=django-tac
8+
$ pip install -e git+https://github.com/rouxcode/django-tac@0.1.3#egg=django-tac
99
```
1010

1111
## Usage

tac/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import unicode_literals
22

33

4-
__version__ = '0.1.2'
4+
__version__ = '0.1.3'
55
default_app_config = 'tac.apps.TACConfig'

tac/templatetags/tac_tags.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
from django import template
44
from django.conf import settings
55
from django.core.exceptions import ImproperlyConfigured
6-
from django.urls import reverse
6+
try:
7+
from django.urls import reverse
8+
except Exception:
9+
from django.core.urlresolvers import reverse
710
from django.utils.translation import get_language
811

912
from .. import conf

0 commit comments

Comments
 (0)