forked from 0x2620/pandora
return html value for entities
This commit is contained in:
parent
d492619be6
commit
ad8db3a293
3 changed files with 4 additions and 3 deletions
|
|
@ -228,7 +228,7 @@ class Annotation(models.Model):
|
|||
try:
|
||||
entity = Entity.get(self.value)
|
||||
j['entity'] = entity.json(user=user)
|
||||
j['value'] = entity.name
|
||||
j['value'] = entity.html_link()
|
||||
except:
|
||||
j['entity'] = {}
|
||||
elif l['type'] == 'event':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue