On Apr 7, 4:05 am, Merrick <merr...@gmail.com> wrote:
> I added a checkbox form field to my template, and I even tried to add
> it in my forms.py and then in my views.py I check for it like so:
>
> if form.cleaned_data['checkbox_field']:
>   code to send email...
>
> But when I submit the form I get a KeyError. How should I go about
> adding a field to a model form when the field is not part of the
> model?
>
> Thanks.

Defining it in the form should work. What did you do? Show us the
code.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to