From: Bryan Date: Wed, 26 Feb 2014 01:58:36 +0000 (-0500) Subject: actual fix for #346, accidently pushed broken code in previous commit X-Git-Tag: release-20150131~163^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=36d9e6115017852f9adb6dd4d70494d20602ae1d;p=oweals%2Fkarmaworld.git actual fix for #346, accidently pushed broken code in previous commit --- 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))