Author: ubernostrum
Date: 2007-09-17 14:00:39 -0500 (Mon, 17 Sep 2007)
New Revision: 6373
Modified:
django/branches/0.91-bugfixes/django/core/formfields.py
Log:
0.91-bugfixes: Backport [3785] from Django trunk
Modified: django/branches/0.91-bugfixes/django/core/formfields.py
===================================================================
--- django/branches/0.91-bugfixes/django/core/formfields.py 2007-09-17
15:58:07 UTC (rev 6372)
+++ django/branches/0.91-bugfixes/django/core/formfields.py 2007-09-17
19:00:39 UTC (rev 6373)
@@ -897,10 +897,7 @@
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):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---