return html value for entities

This commit is contained in:
j 2015-02-06 15:11:19 +05:30
commit ad8db3a293
3 changed files with 4 additions and 3 deletions

View file

@ -141,6 +141,8 @@ class Entity(models.Model):
response[key] = self.data[key]
return response
def html_link(self):
return '<a href="/entities/%s">%s</a>' % (self.get_id(), ox.escape_html(self.name))
def update_matches(self):
import annotation.models