Django

Code

Changeset 3785

Show
Ignore:
Timestamp:
09/21/06 22:10:49 (2 years ago)
Author:
mtredinnick
Message:

Fixed #2685 -- Correctly process blank input for USStateField elements. Thanks,
dackze+django@gmail.com.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/forms/__init__.py

    r3780 r3785  
    953953 
    954954    def html2python(data): 
    955         if data: 
    956             return data.upper() # Should always be stored in upper case 
    957         else: 
    958             return None 
     955        return data.upper() # Should always be stored in upper case 
    959956    html2python = staticmethod(html2python) 
    960957