mirror of https://github.com/django/django.git
Negligible style fix to db/models/fields/__init__.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
71ce11f617
commit
f974b1bb5a
|
@ -479,7 +479,7 @@ class DateField(Field):
|
|||
def get_manipulator_field_objs(self):
|
||||
return [oldforms.DateField]
|
||||
|
||||
def flatten_data(self, follow, obj = None):
|
||||
def flatten_data(self, follow, obj=None):
|
||||
val = self._get_val_from_obj(obj)
|
||||
return {self.attname: (val is not None and val.strftime("%Y-%m-%d") or '')}
|
||||
|
||||
|
|
Loading…
Reference in New Issue