aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-08-29 13:11:25 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-08-29 13:11:25 +0200
commitf028ea21643dabbcbed91c0cf120e908d9fd74e4 (patch)
tree0d0df8cefe3ce108d84ff1d5a5cdd7a719f26d4d /server
parentvertical concatanate images, resize images (diff)
downloadscout-subs-f028ea21643dabbcbed91c0cf120e908d9fd74e4.tar.gz
scout-subs-f028ea21643dabbcbed91c0cf120e908d9fd74e4.zip
fix missing value for doc preview
Diffstat (limited to 'server')
-rw-r--r--server/views.py1
1 files changed, 1 insertions, 0 deletions
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 = ""