Ticket #1336: usstate.patch

File usstate.patch, 593 bytes (added by SmileyChris, 9 years ago)
  • django/oldforms/__init__.py

     
    958958            raise validators.CriticalValidationError, e.messages
    959959
    960960    def html2python(data):
    961         return data.upper() # Should always be stored in upper case
     961        if data:
     962            data = data.upper() # Should always be stored in upper case
     963        return data
    962964    html2python = staticmethod(html2python)
    963965
    964966class CommaSeparatedIntegerField(TextField):
Back to Top