Permalink
Browse files

Make sure the filter arg is a string.

  • Loading branch information...
1 parent 4b99a35 commit 5237cb7f1339eb13b4c01f1c3611448a8f865726 @BertrandBordage committed Aug 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 terms/templatetags/terms.py
@@ -1,12 +1,14 @@
# coding: utf-8
from django.template import Library
+from django.template.defaultfilters import stringfilter
from ..html import TermsHTMLReconstructor
register = Library()
@register.filter
+@stringfilter
def replace_terms(html):
parser = TermsHTMLReconstructor()
parser.feed(html)

0 comments on commit 5237cb7

Please sign in to comment.