diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-12-09 02:15:54 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-12-09 02:15:54 +0000 |
| commit | 9e2b463bafa54f14764c6deef9e182d15c1f7df4 (patch) | |
| tree | 53076f8371b08e80b8f6ab2875e2b5b3aac7a9ea | |
| parent | cecd2951879b31e32210218776f8459e4f90c07a (diff) | |
Fixed inconsistent spacing in core/meta/fields.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/meta/fields.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/meta/fields.py b/django/core/meta/fields.py index 71b995a2df..2342c137c6 100644 --- a/django/core/meta/fields.py +++ b/django/core/meta/fields.py @@ -327,7 +327,7 @@ class Field(object): else: return self.get_default() - def flatten_data(self, follow, obj = None): + def flatten_data(self, follow, obj=None): """ Returns a dictionary mapping the field's manipulator field names to its "flattened" string values for the admin view. obj is the instance to @@ -724,7 +724,7 @@ class ForeignKey(Field): else: return self.rel.get_related_field().get_db_prep_save(value) - def flatten_data(self, follow, obj = None): + def flatten_data(self, follow, obj=None): if not obj: # In required many-to-one fields with only one available choice, # select that one available choice. Note: We have to check that @@ -733,7 +733,7 @@ class ForeignKey(Field): if not self.blank and not self.rel.raw_id_admin and self.choices: choice_list = self.get_choices_default() if len(choice_list) == 2: - return { self.attname : choice_list[1][0] } + return {self.attname: choice_list[1][0]} return Field.flatten_data(self, follow, obj) class ManyToManyField(Field): |
