#12513: UnresolvableValidationError far too greedy line ~
-------------------+--------------------------------------------------------
 Reporter:  skyl   |       Owner:  nobody    
   Status:  new    |   Milestone:            
Component:  Forms  |     Version:  SVN       
 Keywords:         |       Stage:  Unreviewed
Has_patch:  0      |  
-------------------+--------------------------------------------------------
 This should be an okay modelform:

 {{{
 from django.contrib.auth.models import User

 class FailForm(forms.ModelForm):

     class Meta:
         model = User
         fields = ('username',)
 }}}

 I want to see:

 {{{
 >>> f = FailForm({})
 >>> f.is_valid()
 False
 }}}

 Instead, expecting False, I get:

 UnresolvableValidationError: {'password': [u'This field cannot be
 blank.']}

 line ~270 django.forms.models

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12513>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to