#7333: newforms DecimalField docs different from class definition
------------------------------------+---------------------------------------
          Reporter:  jfw            |         Owner:  nobody  
            Status:  new            |     Milestone:  1.0 beta
         Component:  Documentation  |       Version:  SVN     
        Resolution:                 |      Keywords:          
             Stage:  Accepted       |     Has_patch:  0       
        Needs_docs:  1              |   Needs_tests:  0       
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by ElliottM):

  * milestone:  1.0 alpha => 1.0 beta

Comment:

 {{{
 class DecimalField(Field):
 214         default_error_messages = {
 215             'invalid': _(u'Enter a number.'),
 216             'max_value': _(u'Ensure this value is less than or equal
 to %s.'),
 217             'min_value': _(u'Ensure this value is greater than or
 equal to %s.'),
 218             'max_digits': _('Ensure that there are no more than %s
 digits in total.'),
 219             'max_decimal_places': _('Ensure that there are no more
 than %s decimal places.'),
 220             'max_whole_digits': _('Ensure that there are no more than
 %s digits before the decimal point.')
 221         }
 222
 223         def __init__(self, max_value=None, min_value=None,
 max_digits=None, decimal_places=None, *args, **kwargs):
 224             self.max_value, self.min_value = max_value, min_value
 225             self.max_digits, self.decimal_places = max_digits,
 decimal_places
 }}}

 {{{

     * Error message keys: required, invalid, max_value, min_value,
 max_digits, max_decimal_places, max_whole_digits

 Takes four optional arguments: max_value, min_value, max_digits, and
 decimal_places.
 }}}

 Am i Missing something? Those appear to match up. Also, this isn't related
 to a must-have feature, so i'm moving it out of 1.0 alpha

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