Fixed #7913 -- Corrected ham-fisted typo from [8102]. Thanks to evinrik for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2008-07-29 21:43:07 +00:00
parent b69b15fe02
commit a14fc40041
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ class Field(object):
def get_flatchoices(self, include_blank=True, blank_choice=BLANK_CHOICE_DASH): def get_flatchoices(self, include_blank=True, blank_choice=BLANK_CHOICE_DASH):
"Returns flattened choices with a default blank choice included." "Returns flattened choices with a default blank choice included."
first_choice = include_blank and blank_choice or [] first_choice = include_blank and blank_choice or []
return first_choices + list(self.flatchoices) return first_choice + list(self.flatchoices)
def _get_val_from_obj(self, obj): def _get_val_from_obj(self, obj):
if obj: if obj: