diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-12-28 02:20:29 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-12-28 02:20:29 +0000 |
| commit | f974b1bb5af7fe21de71f223a43ee1c0cdcf8f8f (patch) | |
| tree | 8e2e2c7c96e5e9563f5b9fe3aaa7fed2d0b31766 | |
| parent | 71ce11f617cc56024300b4fa968af345329c8ecd (diff) | |
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
| -rw-r--r-- | django/db/models/fields/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index d26bf7e954..ba4f8894e8 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -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 '')} |
