On Jun 18, 8:44 am, Mike H <[EMAIL PROTECTED]> wrote:
> class ContactForm(forms.Form):
>     subject = forms.CharField(max_length=100)
>     message = forms.CharField()
>     sender = forms.EmailField()
>     cc_myself = forms.BooleanField()

Try cc_myself = forms.BooleanField(required=False)

It defaults to requiring the check to keep the same behaviour as all
the other fields (i.e. required=True)
The default is probably the more rare use-case ("I agree to terms/
conditions"), but it keeps consistency across all our fields.


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

Reply via email to