Ticket #11735: 11735.diff
File 11735.diff, 618 bytes (added by , 15 years ago) |
---|
-
docs/topics/forms/modelforms.txt
534 534 535 535 class BaseAuthorFormSet(BaseModelFormSet): 536 536 def __init__(self, *args, **kwargs): 537 super(BaseAuthorFormSet, self).__init__(*args, **kwargs) 537 538 self.queryset = Author.objects.filter(name__startswith='O') 538 super(BaseAuthorFormSet, self).__init__(*args, **kwargs)539 539 540 540 Then, pass your ``BaseAuthorFormSet`` class to the factory function:: 541 541