# 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))