From 36d9e6115017852f9adb6dd4d70494d20602ae1d Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 25 Feb 2014 20:58:36 -0500 Subject: [PATCH] actual fix for #346, accidently pushed broken code in previous commit --- karmaworld/apps/courses/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/apps/courses/views.py b/karmaworld/apps/courses/views.py index acf38ed..a48ac8d 100644 --- a/karmaworld/apps/courses/views.py +++ b/karmaworld/apps/courses/views.py @@ -69,8 +69,8 @@ class CourseListView(ListView, ModelFormMixin, ProcessFormView): # hard code errors for the dynamically named honeypot field. # This bit will not be necessary when the form is dynamically # generated by Django rather than hard coded in the template. - kwargs['honeypot_errors'] = [x for x in form.errors['honeypot']] if - 'honeypot' in form.errors else [] + kwargs['honeypot_errors'] = [x for x in form.errors['honeypot']] \ + if 'honeypot' in form.errors else [] return self.render_to_response(self.get_context_data(**kwargs)) -- 2.25.1