#5708: validate() returns 'This field is required.' for number fields if number 
is
Zero
--------------------------------------+-------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody              
  Status:  new                        |   Component:  Core framework      
 Version:  0.96                       |    Keywords:  validate zero number
   Stage:  Unreviewed                 |   Has_patch:  1                   
--------------------------------------+-------------------------------------
 in django.db.models.fields.__init__.py in line 116 change:

 if not self.blank and not field_data:

 to

 if not self.blank and field_data is None:

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5708>
Django Code <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