forked from 0x2620/pandora
add entity/document relation
This commit is contained in:
parent
b024800974
commit
ccfaa7db4a
6 changed files with 235 additions and 7 deletions
|
|
@ -13,7 +13,6 @@ from django.db.models.signals import pre_delete
|
|||
import ox
|
||||
|
||||
from clip.models import Clip
|
||||
from entity.models import Entity
|
||||
|
||||
from item.utils import sort_string, get_by_key
|
||||
import managers
|
||||
|
|
@ -205,6 +204,7 @@ class Annotation(models.Model):
|
|||
e.delete()
|
||||
|
||||
def json(self, layer=False, keys=None, user=None):
|
||||
from entity.models import Entity
|
||||
j = {
|
||||
'user': self.user.username,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue