From 1f6d8ebedfdd2c05240b2b7a36c25b3c58474e97 Mon Sep 17 00:00:00 2001 From: Lennard de Rijk Date: Fri, 3 Apr 2009 10:36:57 +0000 Subject: [PATCH] Returning a JSON response on successfully storing the found duplicates. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed --- app/soc/views/models/program.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/soc/views/models/program.py b/app/soc/views/models/program.py index ec6d3a71..ca056679 100644 --- a/app/soc/views/models/program.py +++ b/app/soc/views/models/program.py @@ -389,7 +389,9 @@ class View(presence.View): } key_name = duplicates_logic.getKeyNameFromFields(fields) duplicates_logic.updateOrCreateFromKeyName(fields, key_name) - return http.HttpResponse('Done') + + response = simplejson.dumps({'status': 'done'}) + return http.HttpResponse(response) context = helper.responses.getUniversalContext(request) helper.responses.useJavaScript(context, params['js_uses_all']) -- 2.11.4.GIT