Update adminsortable/templatetags/django_template_additions.py
Added support for django 1.3
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user