#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                       |           Resolution:                
   Keywords:  validate zero number       |                Stage:  Accepted      
  Has_patch:  1                          |           Needs_docs:  0             
Needs_tests:  0                          |   Needs_better_patch:  0             
-----------------------------------------+----------------------------------
Changes (by mtredinnick):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Model validation hasn't been fully implemented yet, and that's the only
 thing that should be calling {{{Field.validate_full()}}} at the moment.
 This will be fixed at that time.

 The suggested fix isn't completely correct, since, for example, an empty
 string isn't valid there either.

 For anybody reading this in the near future, the area that needs changing
 is {{{Field.validate_full()}}}, which isn't line 116 any longer.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5708#comment:1>
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