#2101: maxlength should be max_length
------------------------------------+---------------------------------------
   Reporter:  nirvdrum              |                Owner:  adrian          
     Status:  new                   |            Component:  Database wrapper
    Version:                        |           Resolution:                  
   Keywords:  maxlength max_length  |                Stage:  Accepted        
  Has_patch:  1                     |           Needs_docs:  0               
Needs_tests:  0                     |   Needs_better_patch:  0               
------------------------------------+---------------------------------------
Changes (by gwilson):

  * stage:  Ready for checkin => Accepted

Comment:

 `max_length.3.diff`:
 {{{
 Brought patch up to date with trunk.
 Removed duplacation of methods and functions for legacy maxlength support
 by putting them into a maxlength utils module.
 `legacy_maxlength` and `legacy_maxlength_kwargs` functions:
  * `max_length` takes precedence.
  * Added an optional `default` parameter for setting `max_length` to a
 default when no `max_length` or `maxlength` is given.
  * Added tests.
 Fixed some long lines.
 I removed the `legacy_maxlength_kwargs` call for `AutoField`,
 `BooleanField`, and `NullBooleanField` since these don't mess with
 kwargs['max_length'].
 Added a `legacy_maxlength_kwargs` call for `URLField` since it sets
 `kwargs['max_length']` in its `__init__()`
 }}}

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