diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-20 03:28:48 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-20 03:28:48 +0100 |
commit | 01b0980c441a7a2a9e47680ee0b025e648c9ef0f (patch) | |
tree | 2b9b0dbafb318cdf5f8783b19decdc6c8e002440 | |
parent | 2c2f11be39f88310e21f974416d6cf24754fb269 (diff) | |
download | troggle-01b0980c441a7a2a9e47680ee0b025e648c9ef0f.tar.gz troggle-01b0980c441a7a2a9e47680ee0b025e648c9ef0f.tar.bz2 troggle-01b0980c441a7a2a9e47680ee0b025e648c9ef0f.zip |
[svn] forgot to add earlier
-rw-r--r-- | expo/templatetags/link.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/expo/templatetags/link.py b/expo/templatetags/link.py new file mode 100644 index 0000000..5308ace --- /dev/null +++ b/expo/templatetags/link.py @@ -0,0 +1,8 @@ +from django import template
+from django.utils.safestring import mark_safe
+
+register = template.Library()
+
+@register.filter()
+def link(value):
+ return mark_safe("<a href=\'%s\'>"%value.get_absolute_url()+unicode(value)+"</a>")
\ No newline at end of file |