return html value for entities
This commit is contained in:
parent
d492619be6
commit
ad8db3a293
3 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue