diff --git a/django/forms/models.py b/django/forms/models.py
index 193dabe..fc2db6c 100644
a
|
b
|
class ModelChoiceField(ChoiceField):
|
457 | 457 | """A ChoiceField whose choices are a model QuerySet.""" |
458 | 458 | # This class is a subclass of ChoiceField for purity, but it doesn't |
459 | 459 | # actually use any of ChoiceField's implementation. |
| 460 | widget = Select |
460 | 461 | default_error_messages = { |
461 | 462 | 'invalid_choice': _(u'Select a valid choice. That choice is not one of' |
462 | 463 | u' the available choices.'), |
463 | 464 | } |
464 | 465 | |
465 | 466 | def __init__(self, queryset, empty_label=u"---------", cache_choices=False, |
466 | | required=True, widget=Select, label=None, initial=None, |
| 467 | required=True, widget=None, label=None, initial=None, |
467 | 468 | help_text=None, *args, **kwargs): |
468 | 469 | self.empty_label = empty_label |
469 | 470 | self.cache_choices = cache_choices |
… |
… |
class ModelChoiceField(ChoiceField):
|
523 | 524 | |
524 | 525 | class ModelMultipleChoiceField(ModelChoiceField): |
525 | 526 | """A MultipleChoiceField whose choices are a model QuerySet.""" |
| 527 | widget=SelectMultiple |
526 | 528 | hidden_widget = MultipleHiddenInput |
527 | 529 | default_error_messages = { |
528 | 530 | 'list': _(u'Enter a list of values.'), |
… |
… |
class ModelMultipleChoiceField(ModelChoiceField):
|
531 | 533 | } |
532 | 534 | |
533 | 535 | def __init__(self, queryset, cache_choices=False, required=True, |
534 | | widget=SelectMultiple, label=None, initial=None, |
| 536 | widget=None, label=None, initial=None, |
535 | 537 | help_text=None, *args, **kwargs): |
536 | 538 | super(ModelMultipleChoiceField, self).__init__(queryset, None, |
537 | 539 | cache_choices, required, widget, label, initial, help_text, |