Ticket #1336: django-core-formfields.py.diff

File django-core-formfields.py.diff, 566 bytes (added by anonymous, 9 years ago)

Patch file against revision 2292 of django/core/formfields.py

  • formfields.py

     
    875875            raise validators.CriticalValidationError, e.messages
    876876
    877877    def html2python(data):
    878         return data.upper() # Should always be stored in upper case
     878        if data:
     879            return data.upper() # Should always be stored in upper case
     880        else:
     881            return data
    879882    html2python = staticmethod(html2python)
    880883
    881884class CommaSeparatedIntegerField(TextField):
Back to Top