diff --git a/pandora/item/models.py b/pandora/item/models.py index 0c1acefc..939e3aa8 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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()) diff --git a/pandora/padma.jsonc b/pandora/padma.jsonc index 8cf4f0a4..d430301c 100644 --- a/pandora/padma.jsonc +++ b/pandora/padma.jsonc @@ -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",