Display structs in contact form nicely.
[edumed.git] / contact / templatetags / contact_tags.py
diff --git a/contact/templatetags/contact_tags.py b/contact/templatetags/contact_tags.py
new file mode 100755 (executable)
index 0000000..e84064a
--- /dev/null
@@ -0,0 +1,8 @@
+from django.template import Library
+from contact.models import Contact
+
+register = Library()
+
+@register.filter
+def pretty_print(value):
+    return Contact.pretty_print(value)