Permalink
Browse files

label_field template need escape param defined

  • Loading branch information...
1 parent 3933cd2 commit 5e92a00c98477b2f4753f485a70ce36b016bffed @LeResKP LeResKP committed Sep 14, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 tw2/sqla/widgets.py
View
@@ -244,6 +244,7 @@ class DbLinkField(twc.Widget):
link = twc.Param('Path to link to', default=None)
text = twc.Param('Link text', default='')
entity = twc.Param('SQLAlchemy mapped class to use', request_local=False)
+ escape = twc.Param('Whether text shall be html-escaped or not', default=True)
def encode(self, value):
return urllib.quote(unicode(value).encode('utf-8'))

0 comments on commit 5e92a00

Please sign in to comment.