Ticket #5070: newforms-models-querysetinterator.diff

File newforms-models-querysetinterator.diff, 591 bytes (added by Thomas Güttler <hv@…>, 17 years ago)
  • django/newforms/models.py

     
    117117    return type('FormForFields', (BaseForm,), {'base_fields': fields})
    118118
    119119class QuerySetIterator(object):
    120     def __init__(self, queryset, empty_label, cache_choices):
     120    def __init__(self, queryset, empty_label=u"---------", cache_choices=False):
    121121        self.queryset, self.empty_label, self.cache_choices = queryset, empty_label, cache_choices
    122122
    123123    def __iter__(self):
Back to Top