mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-01-19 17:32:31 +00:00
[svn] forgot to add earlier
This commit is contained in:
parent
2c2f11be39
commit
01b0980c44
8
expo/templatetags/link.py
Normal file
8
expo/templatetags/link.py
Normal file
@ -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>")
|
Loading…
Reference in New Issue
Block a user