This commit is contained in:
j 2012-02-16 19:43:08 +05:30
parent 7d10a0a727
commit d7a20821d6
2 changed files with 9 additions and 0 deletions

View file

@ -576,6 +576,8 @@ class Item(models.Model):
elif i == 'filename':
save(i,
'\n'.join([f.path for f in self.files.all()]))
elif i == 'user':
save(i, self.user.username)
elif key['id'] == 'annotations':
qs = Annotation.objects.filter(item=self)
qs = qs.filter(layer__in=Annotation.public_layers())

View file

@ -349,6 +349,13 @@
"columnWidth": 60,
"value": {"key": "files", "type": "length"}
},
{
"id": "user",
"title": "User",
"type": "string",
"capability": "canSeeFiles",
"find": true
},
{
"id": "filename",
"title": "Filename",