summaryrefslogtreecommitdiffstats
path: root/inventory/templatetags/graph_extras.py
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-07-27 00:14:34 +0200
committerSebastian Reichel <sre@ring0.de>2012-07-27 00:14:34 +0200
commita8021c92eaf21e08da784762ec5695622f74f25a (patch)
tree6909db96a55234032cc0d0bf465bd61d08a2c9a7 /inventory/templatetags/graph_extras.py
parent871d3231ad9655f08e5d0fe9eea265bc11faa1ca (diff)
downloadktt-inventory-system-a8021c92eaf21e08da784762ec5695622f74f25a.tar.bz2
add inventory/
Diffstat (limited to 'inventory/templatetags/graph_extras.py')
-rw-r--r--inventory/templatetags/graph_extras.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/inventory/templatetags/graph_extras.py b/inventory/templatetags/graph_extras.py
new file mode 100644
index 0000000..66788e9
--- /dev/null
+++ b/inventory/templatetags/graph_extras.py
@@ -0,0 +1,8 @@
+from django import template
+from django.template.defaultfilters import stringfilter
+register = template.Library()
+
+@register.filter(name='graphescape')
+@stringfilter
+def graphescape(value):
+ return value.replace('"', '\\"')