summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-12-16 15:15:41 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-12-16 15:15:41 +0000
commit4e81086021e76874652d7c8eb52de39ab38c43f4 (patch)
tree168fc0f8ec913f43d88b4763ef6ac6747933a847 /tests
parent680268a6833d5b18c08f2e1d65840f8c12d13249 (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/model_formsets/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/model_formsets/models.py b/tests/modeltests/model_formsets/models.py
index 6b70826ab5..5c62885be5 100644
--- a/tests/modeltests/model_formsets/models.py
+++ b/tests/modeltests/model_formsets/models.py
@@ -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()