Ticket #13086: choices.diff
File choices.diff, 648 bytes (added by , 15 years ago) |
---|
-
django/db/models/fields/__init__.py
387 387 as SelectField choices for this field.""" 388 388 first_choice = include_blank and blank_choice or [] 389 389 if self.choices: 390 if first_choice and first_choice[0][0] in [c[0] for c in self.choices]: 391 return list(self.choices) 390 392 return first_choice + list(self.choices) 391 393 rel_model = self.rel.to 392 394 if hasattr(self.rel, 'get_related_field'):