Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
  • Loading branch information...
commit 45bc45eac23eba3e5a9a901e1579eb866fe2affd 1 parent 632a0e9
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/model_formsets/models.py
View
4 tests/modeltests/model_formsets/models.py
@@ -646,7 +646,7 @@ def __unicode__(self):
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 @@ def __unicode__(self):
>>> 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()
Please sign in to comment.
Something went wrong with that request. Please try again.