Ticket #5070: newforms-models-querysetinterator.diff
File newforms-models-querysetinterator.diff, 591 bytes (added by , 17 years ago) |
---|
-
django/newforms/models.py
117 117 return type('FormForFields', (BaseForm,), {'base_fields': fields}) 118 118 119 119 class QuerySetIterator(object): 120 def __init__(self, queryset, empty_label , cache_choices):120 def __init__(self, queryset, empty_label=u"---------", cache_choices=False): 121 121 self.queryset, self.empty_label, self.cache_choices = queryset, empty_label, cache_choices 122 122 123 123 def __iter__(self):