Ticket #11735: 11735.diff

File 11735.diff, 618 bytes (added by Tim Graham, 15 years ago)

switch the order of super/self.queryset lines

  • docs/topics/forms/modelforms.txt

     
    534534
    535535    class BaseAuthorFormSet(BaseModelFormSet):
    536536        def __init__(self, *args, **kwargs):
     537            super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
    537538            self.queryset = Author.objects.filter(name__startswith='O')
    538             super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
    539539
    540540Then, pass your ``BaseAuthorFormSet`` class to the factory function::
    541541
Back to Top