From 8ce118326ad3d3eb8307e7808274b34bf4bef0d8 Mon Sep 17 00:00:00 2001 From: Chris Karr Date: Sun, 2 Apr 2017 23:58:28 -0500 Subject: [PATCH] Fixes bug that would corrupt bundle objects after processing --- management/commands/process_bundles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/management/commands/process_bundles.py b/management/commands/process_bundles.py index 4baf557..2b8784a 100644 --- a/management/commands/process_bundles.py +++ b/management/commands/process_bundles.py @@ -54,6 +54,9 @@ def handle(self, *args, **options): point.fetch_secondary_identifier() point.save() + + if install_supports_jsonfield() is False: + bundle.properties = json.dumps(bundle.properties, indent=2) bundle.processed = True bundle.save()