From: Jacob Hilker Date: Sun, 2 Feb 2014 23:14:11 +0000 (-0500) Subject: minor cleanup X-Git-Tag: release-20150131~178^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c3e2c3db9ebb0b8ffdeaa13bc609bc8b63214022;p=oweals%2Fkarmaworld.git minor cleanup --- 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) {