reverted previous patch

This commit is contained in:
mdipierro
2013-09-07 21:01:30 -05:00
parent bf89d42c00
commit aacbb5cef8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2341,7 +2341,7 @@ class IS_DATETIME(Validator):
return (ovalue, translate(self.error_message) % self.extremes)
def formatter(self, value):
if value is None or value == '':
if value is None:
return None
format = self.format
year = value.year