Commit 45bc45ea authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.1.X] Cleaned up some stray text in the test from r11874. Thanks to Rob...

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

Backport of r11876 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 632a0e9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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()