From c3e2c3db9ebb0b8ffdeaa13bc609bc8b63214022 Mon Sep 17 00:00:00 2001 From: Jacob Hilker Date: Sun, 2 Feb 2014 18:14:11 -0500 Subject: [PATCH] minor cleanup --- karmaworld/apps/courses/views.py | 1 - karmaworld/assets/js/course-detail.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/karmaworld/apps/courses/views.py b/karmaworld/apps/courses/views.py index 4be59b8..541eb4e 100644 --- a/karmaworld/apps/courses/views.py +++ b/karmaworld/apps/courses/views.py @@ -222,7 +222,6 @@ def edit_course(request, pk): return HttpResponse(json.dumps(resp), mimetype="application/json") else: - print course_form.errors return HttpResponseBadRequest(json.dumps({'status': 'fail', 'message': 'Validation error', 'errors': course_form.errors}), mimetype="application/json") diff --git a/karmaworld/assets/js/course-detail.js b/karmaworld/assets/js/course-detail.js index 443e977..70bc420 100644 --- a/karmaworld/assets/js/course-detail.js +++ b/karmaworld/assets/js/course-detail.js @@ -64,6 +64,7 @@ $(function() { // Delete all errors that currently exist $('.validation_error').remove() + $('#course_form_errors').empty(); // Failed responses with no errors -> display message if (!errors) { -- 2.25.1