Cleaned up some stray text in the test from r11874. Thanks to Rob Hudson for the eagle eyes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-12-16 15:15:41 +00:00
parent 680268a683
commit 4e81086021
1 changed files with 2 additions and 2 deletions

View File

@ -646,7 +646,7 @@ True
We can provide a custom queryset to our InlineFormSet:
>>> custom_qs = queryset=Book.objects.order_by('-title')
>>> custom_qs = Book.objects.order_by('-title')
>>> formset = AuthorBooksFormSet(instance=author, queryset=custom_qs)
>>> for form in formset.forms:
... print form.as_p()
@ -672,7 +672,7 @@ We can provide a custom queryset to our InlineFormSet:
>>> formset.is_valid()
True
>>> custom_qs = queryset=Book.objects.filter(title__startswith='F')
>>> custom_qs = Book.objects.filter(title__startswith='F')
>>> formset = AuthorBooksFormSet(instance=author, queryset=custom_qs)
>>> for form in formset.forms:
... print form.as_p()