R form_guard/helpers.py => +0 -7
@@ 1,7 0,0 @@
-
-
-def is_string(obj):
- try:
- return isinstance(obj, basestring)
- except NameError:
- return isinstance(obj, str)
M form_guard/templatetags/form_guard_tags.py +7 -2
@@ 1,9 1,14 @@
# -*- coding: utf-8 -*-
from django import template
-from form_guard.helpers import is_string
+register = template.Library()
+
-register = template.Library()
+def is_string(obj):
+ try:
+ return isinstance(obj, basestring)
+ except NameError:
+ return isinstance(obj, str)
@register.inclusion_tag('form_guard/js_snippet.html', takes_context=True)