Ticket #9076: 9076.diff
File 9076.diff, 505 bytes (added by , 16 years ago) |
---|
-
django/forms/models.py
diff -r 4acc60c2da38 django/forms/models.py
a b 336 336 337 337 def _construct_form(self, i, **kwargs): 338 338 if i < self._initial_form_count: 339 kwargs['instance'] = self.get_queryset()[i]339 kwargs['instance'] = list(self.get_queryset())[i] 340 340 return super(BaseModelFormSet, self)._construct_form(i, **kwargs) 341 341 342 342 def get_queryset(self):