~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to docs/ref/forms/models.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-08-13 16:49:39 UTC
  • mfrom: (1.3.9)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20130813164939-irlkd7hokvcgocfl
Tags: upstream-1.5.2
ImportĀ upstreamĀ versionĀ 1.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
.. function:: inlineformset_factory(parent_model, model, form=ModelForm, formset=BaseInlineFormSet, fk_name=None, fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=None, formfield_callback=None)
43
43
 
44
44
    Returns an ``InlineFormSet`` using :func:`modelformset_factory` with
45
 
    defaults of ``formset=BaseInlineFormSet``, ``can_delete=True``, and
46
 
    ``extra=3``.
 
45
    defaults of ``formset=``:class:`~django.forms.models.BaseInlineFormSet`,
 
46
    ``can_delete=True``, and ``extra=3``.
47
47
 
48
48
    If your model has more than one :class:`~django.db.models.ForeignKey` to
49
49
    the ``parent_model``, you must specify a ``fk_name``.