Thanks, didn't occur to me to use that :) Perhaps the example in the 
docs needs updating to show required=False in the cc_myself field? Would 
make a bit more sense as that form actually forces you to cc yourself ;)

Cheers,

Mike

SmileyChris wrote:
> 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