From 5a6617d018e3bb1046e13df27b95fb49c2db6e58 Mon Sep 17 00:00:00 2001 From: shinznatkid Date: Thu, 28 Apr 2016 19:17:47 +0700 Subject: [PATCH] - Support Python 3 --- django_sortable/helpers.py | 2 +- django_sortable/templatetags/sortable.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_sortable/helpers.py b/django_sortable/helpers.py index 49355e9..d7558aa 100644 --- a/django_sortable/helpers.py +++ b/django_sortable/helpers.py @@ -1,4 +1,4 @@ -from sortable import Sortable +from .sortable import Sortable def sortable_helper(request, objects, fields=None): diff --git a/django_sortable/templatetags/sortable.py b/django_sortable/templatetags/sortable.py index 4effdff..41acd5e 100755 --- a/django_sortable/templatetags/sortable.py +++ b/django_sortable/templatetags/sortable.py @@ -19,7 +19,7 @@ def parse_tag_token(token): """Parses a tag that's supposed to be in this format: {% sortable_link field title %} """ bits = [b.strip('"\'') for b in token.split_contents()] if len(bits) < 2: - raise TemplateSyntaxError, "anchor tag takes at least 1 argument" + raise template.TemplateSyntaxError("anchor tag takes at least 1 argument") try: title = bits[2] except IndexError: