blank datetime fix beauty

This commit is contained in:
nikepan 2017-03-27 17:07:10 +03:00
parent e5222ffcb0
commit b2a5482a65

View File

@ -137,7 +137,7 @@ class DateTimeField(Field):
raise ValueError('Invalid value for %s - %r' % (self.__class__.__name__, value)) raise ValueError('Invalid value for %s - %r' % (self.__class__.__name__, value))
def to_db_string(self, value, quote=True): def to_db_string(self, value, quote=True):
return escape('%010d' % (timegm(value.utctimetuple())), quote) return escape('%010d' % timegm(value.utctimetuple()), quote)
class BaseIntField(Field): class BaseIntField(Field):