aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = ""