Enhancement / fix: include social accounts and api tokens in export (#8016)

This commit is contained in:
shamoon
2024-10-26 06:51:22 -07:00
committed by GitHub
parent 53aa216a4a
commit 7649903d3c
4 changed files with 39 additions and 15 deletions

View File

@@ -414,9 +414,10 @@ class Command(CryptMixin, BaseCommand):
):
had_at_least_one_record = True
for field in crypt_fields:
record["fields"][field] = self.decrypt_string(
value=record["fields"][field],
)
if record["fields"][field]:
record["fields"][field] = self.decrypt_string(
value=record["fields"][field],
)
if had_at_least_one_record:
# It's annoying, but the DB is loaded from the JSON directly