diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index a6e08ee749..966d53a7bf 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'] @@ -460,8 +461,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())