Commits

Anonymous committed 382a89a

0.91-bugfixes: Backport [3785] from Django trunk

Comments (0)

Files changed (1)

django/core/formfields.py

             raise validators.CriticalValidationError, e.messages
 
     def html2python(data):
-        if data:
-            return data.upper() # Should always be stored in upper case
-        else:
-            return None
+        return data.upper() # Should always be stored in upper case
     html2python = staticmethod(html2python)
 
 class CommaSeparatedIntegerField(TextField):