From f974b1bb5af7fe21de71f223a43ee1c0cdcf8f8f Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 28 Dec 2006 02:20:29 +0000 Subject: [PATCH] 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 --- django/db/models/fields/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '')}