Wednesday, March 30, 2011

Re: Invalid values in a form cause validation to fail

On Wed, Mar 30, 2011 at 6:34 AM, ALJ <> wrote:
Hi Karen,

Here is an example that I use to replicate the error:

view >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

form >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
class RatingsListFilterForm(forms.Form):
   organisation_name = forms.CharField(required=False,
   corporation = forms.ModelChoiceField(required=False,

I'm using Django 1.1 if that makes any difference

This was a bug in Django, the code you post works on 1.3 and 1.2.5. I believe the issue was corrected with the fix for ticket #13149.


You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment