Ticket #5103: 5103 QuerySetIterator default arguments.patch

File 5103 QuerySetIterator default arguments.patch, 566 bytes (added by Collin Anderson <cmawebsite@…>, 8 years ago)
  • newforms/models.py

     
    123123    return type('FormForFields', (BaseForm,), {'base_fields': fields})
    124124
    125125class QuerySetIterator(object):
    126     def __init__(self, queryset, empty_label, cache_choices):
     126    def __init__(self, queryset, empty_label=None, cache_choices=None):
    127127        self.queryset, self.empty_label, self.cache_choices = queryset, empty_label, cache_choices
    128128
    129129    def __iter__(self):
Back to Top