Author: russellm
Date: 2009-12-16 09:16:21 -0600 (Wed, 16 Dec 2009)
New Revision: 11877
Modified:
django/branches/releases/1.1.X/tests/modeltests/model_formsets/models.py
Log:
[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.
Modified:
django/branches/releases/1.1.X/tests/modeltests/model_formsets/models.py
===================================================================
--- django/branches/releases/1.1.X/tests/modeltests/model_formsets/models.py
2009-12-16 15:15:41 UTC (rev 11876)
+++ django/branches/releases/1.1.X/tests/modeltests/model_formsets/models.py
2009-12-16 15:16:21 UTC (rev 11877)
@@ -646,7 +646,7 @@
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 @@
>>> 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()
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.