From 9c8a2ab81db1fa999862034d9e8e9e1d091a72e5 Mon Sep 17 00:00:00 2001 From: I am Clinton Date: Fri, 22 May 2015 09:53:55 -0500 Subject: [PATCH] Fixed mistakes in docs/topics/forms/formsets.txt examples. --- docs/topics/forms/formsets.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index 5d8fd87875..906fe82c7b 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -209,6 +209,7 @@ this management data, an exception will be raised:: ... 'form-0-pub_date': '', ... } >>> formset = ArticleFormSet(data) + >>> formset.is_valid() Traceback (most recent call last): ... django.forms.utils.ValidationError: ['ManagementForm data is missing or has been tampered with'] @@ -453,8 +454,7 @@ Lets you create a formset with the ability to select forms for deletion:: ... {'title': 'Article #2', 'pub_date': datetime.date(2008, 5, 11)}, ... ]) >>> for form in formset: - .... print(form.as_table()) - + ... print(form.as_table())