Ticket #7244: 7244.patch
File 7244.patch, 1.9 KB (added by , 16 years ago) |
---|
-
django/forms/models.py
463 463 } 464 464 465 465 def __init__(self, queryset, empty_label=u"---------", cache_choices=False, 466 required=True, widget= Select, label=None, initial=None,466 required=True, widget=None, label=None, initial=None, 467 467 help_text=None, *args, **kwargs): 468 468 self.empty_label = empty_label 469 469 self.cache_choices = cache_choices … … 523 523 524 524 class ModelMultipleChoiceField(ModelChoiceField): 525 525 """A MultipleChoiceField whose choices are a model QuerySet.""" 526 widget = SelectMultiple 526 527 hidden_widget = MultipleHiddenInput 527 528 default_error_messages = { 528 529 'list': _(u'Enter a list of values.'), … … 531 532 } 532 533 533 534 def __init__(self, queryset, cache_choices=False, required=True, 534 widget= SelectMultiple, label=None, initial=None,535 widget=None, label=None, initial=None, 535 536 help_text=None, *args, **kwargs): 536 537 super(ModelMultipleChoiceField, self).__init__(queryset, None, 537 538 cache_choices, required, widget, label, initial, help_text, -
django/forms/fields.py
773 773 774 774 class FilePathField(ChoiceField): 775 775 def __init__(self, path, match=None, recursive=False, required=True, 776 widget= Select, label=None, initial=None, help_text=None,776 widget=None, label=None, initial=None, help_text=None, 777 777 *args, **kwargs): 778 778 self.path, self.match, self.recursive = path, match, recursive 779 779 super(FilePathField, self).__init__(choices=(), required=required,