Ticket #2685: django-blank-state.diff

File django-blank-state.diff, 599 bytes (added by dackze+django@…, 18 years ago)

Fixes forms.USStateField.html2python

  • django/forms/__init__.py

     
    952952            raise validators.CriticalValidationError, e.messages
    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
    961958class CommaSeparatedIntegerField(TextField):
Back to Top