From 7c758c0750e8af5a453564c4b79c5dddcb97bd02 Mon Sep 17 00:00:00 2001 From: Tim Vogel Date: Tue, 1 Mar 2022 21:54:28 +0100 Subject: [PATCH] fix document_export issue (#191) --- src/documents/management/commands/document_exporter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/documents/management/commands/document_exporter.py b/src/documents/management/commands/document_exporter.py index c3dce40cc..d2b6f8e32 100644 --- a/src/documents/management/commands/document_exporter.py +++ b/src/documents/management/commands/document_exporter.py @@ -6,7 +6,7 @@ import time import tqdm from django.conf import settings -from django.contrib.auth.models import User +from django.contrib.auth.models import User, Group from django.core import serializers from django.core.management.base import BaseCommand, CommandError from django.db import transaction @@ -144,6 +144,8 @@ class Command(BaseCommand): serializers.serialize("json", SavedViewFilterRule.objects.all()) ) + manifest += json.loads(serializers.serialize("json", Group.objects.all())) + manifest += json.loads(serializers.serialize("json", User.objects.all())) # 3. Export files from each document