Ticket #9076: 9076.diff

File 9076.diff, 505 bytes (added by Leonidas, 16 years ago)

A workaround that makes the validation succeed.

  • django/forms/models.py

    diff -r 4acc60c2da38 django/forms/models.py
    a b  
    336336
    337337    def _construct_form(self, i, **kwargs):
    338338        if i < self._initial_form_count:
    339             kwargs['instance'] = self.get_queryset()[i]
     339            kwargs['instance'] = list(self.get_queryset())[i]
    340340        return super(BaseModelFormSet, self)._construct_form(i, **kwargs)
    341341
    342342    def get_queryset(self):
Back to Top