entities are not links

This commit is contained in:
j 2015-04-16 20:02:31 +00:00
commit e851dcabfb
3 changed files with 7 additions and 3 deletions

View file

@ -159,8 +159,9 @@ 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 annotation_value(self):
#return u'<a href="/entities/%s">%s</a>' % (self.get_id(), ox.escape_html(self.name))
return ox.escape_html(self.name)
def update_matches(self):
import annotation.models