From f028ea21643dabbcbed91c0cf120e908d9fd74e4 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 29 Aug 2020 13:11:25 +0200 Subject: fix missing value for doc preview --- server/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/views.py b/server/views.py index dec4e11..26d5b2a 100644 --- a/server/views.py +++ b/server/views.py @@ -881,6 +881,7 @@ def docpreview(request): # get document document = Document.objects.filter(code=code)[0] + parent_group = document.user.groups.values_list('name', flat=True)[0] # prepare images in base64 vac_file = "" -- cgit v1.2.1