Ticket #10989: 10989.diff

File 10989.diff, 1.2 KB (added by ramiro, 6 years ago)
  • docs/topics/forms/formsets.txt

    diff -r 349898dd5478 docs/topics/forms/formsets.txt
    a b  
    145145``total_form_count`` and ``initial_form_count``
    146146~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    147147
    148 ``BaseModelFormSet`` has a couple of methods that are closely related to the
     148``BaseFormSet`` has a couple of methods that are closely related to the
    149149``ManagementForm``, ``total_form_count`` and ``initial_form_count``.
    150150
    151151``total_form_count`` returns the total number of forms in this formset.
  • docs/topics/forms/media.txt

    diff -r 349898dd5478 docs/topics/forms/media.txt
    a b  
    176176
    177177If you need to perform some more sophisticated manipulation of media
    178178requirements, you can define the media property directly. This is done
    179 by defining a model property that returns an instance of ``forms.Media``.
     179by defining a widget property that returns an instance of ``forms.Media``.
    180180The constructor for ``forms.Media`` accepts ``css`` and ``js`` keyword
    181181arguments in the same format as that used in a static media definition.
    182182
Back to Top