Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

boulder-oracle-sprint: Fixed #3748.

  • Loading branch information...
commit 1d90cbd758d268b05a32c14ff3054b75e436e0e7 1 parent ab622a3
Boulder Sprinters authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 django/db/models/fields/__init__.py
View
9 django/db/models/fields/__init__.py
@@ -580,13 +580,8 @@ def get_manipulator_new_data(self, new_data, rel=False):
def flatten_data(self,follow, obj = None):
val = self._get_val_from_obj(obj)
date_field, time_field = self.get_manipulator_field_names('')
- # cx_Oracle does not support strftime
- if settings.DATABASE_ENGINE == 'oracle':
- return {date_field: (val is not None or ''),
- time_field: (val is not None or '')}
- else:
- return {date_field: (val is not None and val.strftime("%Y-%m-%d") or ''),
- time_field: (val is not None and val.strftime("%H:%M:%S") or '')}
+ return {date_field: (val is not None and val.strftime("%Y-%m-%d") or ''),
+ time_field: (val is not None and val.strftime("%H:%M:%S") or '')}
def formfield(self, **kwargs):
defaults = {'required': not self.blank, 'label': capfirst(self.verbose_name), 'help_text': self.help_text}
Please sign in to comment.
Something went wrong with that request. Please try again.