Ticket #3146: unicode_strftime_fix.diff
File unicode_strftime_fix.diff, 479 bytes (added by , 17 years ago) |
---|
-
__init__.py
537 537 538 538 def get_db_prep_save(self, value): 539 539 # Casts dates into string format for entry into database. 540 if value is not None :540 if value is not None and hasattr(value, 'strftime'): 541 541 value = value.strftime('%Y-%m-%d') 542 542 return Field.get_db_prep_save(self, value) 543 543