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:
Adrian Holovaty 2006-12-28 02:20:29 +00:00
parent 71ce11f617
commit f974b1bb5a
1 changed files with 1 additions and 1 deletions

View File

@ -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 '')}