Ticket #5103: 5103 QuerySetIterator default arguments.patch
File 5103 QuerySetIterator default arguments.patch, 566 bytes (added by , 17 years ago) |
---|
-
newforms/models.py
123 123 return type('FormForFields', (BaseForm,), {'base_fields': fields}) 124 124 125 125 class QuerySetIterator(object): 126 def __init__(self, queryset, empty_label , cache_choices):126 def __init__(self, queryset, empty_label=None, cache_choices=None): 127 127 self.queryset, self.empty_label, self.cache_choices = queryset, empty_label, cache_choices 128 128 129 129 def __iter__(self):