Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9027 -- Corrected the documentation about can_delete default v…

…alue. Thanks gsf for catching this.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9ee0b0d384f86e31600772340383f2f2f7ca8611 1 parent 1a22962
Brian Rosner authored September 12, 2008

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  docs/topics/forms/modelforms.txt
9  docs/topics/forms/modelforms.txt
@@ -411,8 +411,9 @@ working with ``ModelForm`` instances instead of ``Form`` instances::
411 411
     <tr><th><label for="id_form-0-birth_date">Birth date:</label></th><td><input type="text" name="form-0-birth_date" id="id_form-0-birth_date" /><input type="hidden" name="form-0-id" id="id_form-0-id" /></td></tr>
412 412
 
413 413
 .. note::
414  
-    One thing to note is that ``modelformset_factory`` uses ``formset_factory``
415  
-    and by default uses ``can_delete=True``.
  414
+    ``modelformset_factory`` uses ``formset_factory`` to generate the forms
  415
+    making model formsets simply an abstraction on top of formsets that knows
  416
+    about models and how to interact.
416 417
 
417 418
 Changing the queryset
418 419
 ---------------------
@@ -559,6 +560,10 @@ some author you would do::
559 560
     >>> author = Author.objects.get(name=u'Orson Scott Card')
560 561
     >>> formset = BookFormSet(instance=author)
561 562
 
  563
+.. note::
  564
+    ``inlineformset_factory`` uses ``modelformset_factory`` and marks
  565
+    ``can_delete=True``.
  566
+
562 567
 More than one foreign key to the same model
563 568
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
564 569
 

0 notes on commit 9ee0b0d

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