actual fix for #346, accidently pushed broken code in previous commit
authorBryan <btbonval@gmail.com>
Wed, 26 Feb 2014 01:58:36 +0000 (20:58 -0500)
committerBryan <btbonval@gmail.com>
Wed, 26 Feb 2014 01:58:36 +0000 (20:58 -0500)
karmaworld/apps/courses/views.py

index acf38ed24077106e5e0c625a6503607472db1bf1..a48ac8d5b8d8d1f4c659ef24d6d55e35dbe70779 100644 (file)
@@ -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))