From c3bc1f65ea772e31f2c4a19962a73e181e3ac810 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 10 Oct 2012 00:34:51 -0400 Subject: [PATCH] Update JSON filter to remove the last comma --- apps/bootstrap/literals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bootstrap/literals.py b/apps/bootstrap/literals.py index 433b0d8fee..6cdad14e78 100644 --- a/apps/bootstrap/literals.py +++ b/apps/bootstrap/literals.py @@ -51,7 +51,7 @@ FIXTURE_TYPE_MODEL_PROCESS = { } FIXTURE_TYPE_FIXTURE_PROCESS = { - FIXTURE_TYPE_JSON: lambda x: '[\n%s\n]' % x, + FIXTURE_TYPE_JSON: lambda x: '[\n%s\n]' % x[:-1], # Enclose in [], remove last comma FIXTURE_TYPE_YAML: lambda x: x, FIXTURE_TYPE_BETTER_YAML: lambda x: x, FIXTURE_TYPE_XML: lambda x: x,