mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-24 18:00:30 +00:00
Update adminsortable/templatetags/django_template_additions.py
Added support for django 1.3
This commit is contained in:
parent
1614e77b75
commit
fed05de9ad
1 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
from itertools import groupby
|
||||
from django import template, TemplateSyntaxError
|
||||
from django import template
|
||||
try:
|
||||
from django import TemplateSyntaxError
|
||||
except ImportError:
|
||||
#support for django 1.3
|
||||
from django.template.base import TemplateSyntaxError
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue