Author: russellm
Date: 2009-12-16 09:15:41 -0600 (Wed, 16 Dec 2009)
New Revision: 11876

Modified:
   django/trunk/tests/modeltests/model_formsets/models.py
Log:
Cleaned up some stray text in the test from r11874. Thanks to Rob Hudson for 
the eagle eyes.

Modified: django/trunk/tests/modeltests/model_formsets/models.py
===================================================================
--- django/trunk/tests/modeltests/model_formsets/models.py      2009-12-16 
14:53:42 UTC (rev 11875)
+++ django/trunk/tests/modeltests/model_formsets/models.py      2009-12-16 
15:15:41 UTC (rev 11876)
@@ -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.


Reply via email to