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: