fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
contact/templatetags/contact_tags.py
@@ -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)