Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaned up some stray text in the test from r11874. Thanks to Rob Hud…

…son for the eagle eyes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4e81086021e76874652d7c8eb52de39ab38c43f4 1 parent 680268a
@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.