forked from 0x2620/pandora
add user
This commit is contained in:
parent
7d10a0a727
commit
d7a20821d6
2 changed files with 9 additions and 0 deletions
|
@ -576,6 +576,8 @@ class Item(models.Model):
|
||||||
elif i == 'filename':
|
elif i == 'filename':
|
||||||
save(i,
|
save(i,
|
||||||
'\n'.join([f.path for f in self.files.all()]))
|
'\n'.join([f.path for f in self.files.all()]))
|
||||||
|
elif i == 'user':
|
||||||
|
save(i, self.user.username)
|
||||||
elif key['id'] == 'annotations':
|
elif key['id'] == 'annotations':
|
||||||
qs = Annotation.objects.filter(item=self)
|
qs = Annotation.objects.filter(item=self)
|
||||||
qs = qs.filter(layer__in=Annotation.public_layers())
|
qs = qs.filter(layer__in=Annotation.public_layers())
|
||||||
|
|
|
@ -349,6 +349,13 @@
|
||||||
"columnWidth": 60,
|
"columnWidth": 60,
|
||||||
"value": {"key": "files", "type": "length"}
|
"value": {"key": "files", "type": "length"}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "user",
|
||||||
|
"title": "User",
|
||||||
|
"type": "string",
|
||||||
|
"capability": "canSeeFiles",
|
||||||
|
"find": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "filename",
|
"id": "filename",
|
||||||
"title": "Filename",
|
"title": "Filename",
|
||||||
|
|
Loading…
Reference in a new issue