Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed #20677 - Typos in generic_inlineformset_factory docs.

Thanks Riley Strong for the report.

Backport of 3fd0ee5 from master
  • Loading branch information...
commit 62a9abeff05e4af61878bff7ff615cd298cf0d7e 1 parent def1881
Tim Graham authored
4  django/contrib/contenttypes/generic.py
@@ -432,8 +432,8 @@ def generic_inlineformset_factory(model, form=ModelForm,
432 432
     """
433 433
     Returns a ``GenericInlineFormSet`` for the given kwargs.
434 434
 
435  
-    You must provide ``ct_field`` and ``object_id`` if they different from the
436  
-    defaults ``content_type`` and ``object_id`` respectively.
  435
+    You must provide ``ct_field`` and ``fk_field`` if they are different from
  436
+    the defaults ``content_type`` and ``object_id`` respectively.
437 437
     """
438 438
     opts = model._meta
439 439
     # Avoid a circular import.
6  docs/ref/contrib/contenttypes.txt
@@ -497,8 +497,8 @@ information.
497 497
     Returns a ``GenericInlineFormSet`` using
498 498
     :func:`~django.forms.models.modelformset_factory`.
499 499
 
500  
-    You must provide ``ct_field`` and ``object_id`` if they different from the
501  
-    defaults, ``content_type`` and ``object_id`` respectively. Other parameters
502  
-    are similar to those documented in
  500
+    You must provide ``ct_field`` and ``fk_field`` if they are different from
  501
+    the defaults, ``content_type`` and ``object_id`` respectively. Other
  502
+    parameters are similar to those documented in
503 503
     :func:`~django.forms.models.modelformset_factory` and
504 504
     :func:`~django.forms.models.inlineformset_factory`.

0 notes on commit 62a9abe

Please sign in to comment.
Something went wrong with that request. Please try again.