From d795e403441e198eadae744c88bcc95501b1f733 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 29 Aug 2020 23:37:59 +0200 Subject: [PATCH] fix username --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 620494e9c..4f9ead259 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -492,7 +492,7 @@ class File(models.Model): data['instances'].append({ 'ignore': False, 'path': self.info['filename'], - 'user': f.item.user.username, + 'user': self.item.user.username if self.item and self.item.user else 'system', 'volume': 'Direct Upload' }) return data