diff --git a/fixture_magic/management/commands/custom_dump.py b/fixture_magic/management/commands/custom_dump.py index 3a47ebb..7a2f15e 100644 --- a/fixture_magic/management/commands/custom_dump.py +++ b/fixture_magic/management/commands/custom_dump.py @@ -70,11 +70,12 @@ def handle(self, *args, **options): add_to_serialize_list([obj], serialize_me, seen) serialize_fully(serialize_me, seen) - data = serialize('json', [o for o in serialize_me if o is not None], - indent=4, - use_natural_foreign_keys=options.get('natural', False), - use_natural_primary_keys=options.get('natural', False), - ) + data = serialize( + 'json', [o for o in serialize_me if o is not None], + indent=4, + use_natural_foreign_keys=options.get('natural', False), + use_natural_primary_keys=options.get('natural', False), + ) data = reorder_json( json.loads(data),