mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue