Author: russellm
Date: 2009-02-03 17:13:02 -0600 (Tue, 03 Feb 2009)
New Revision: 9814

Modified:
   django/trunk/docs/topics/db/queries.txt
Log:
Fixed #10187 -- Added documentation on how to import F() objects. Thanks to 
trigeek38 for the report.

Modified: django/trunk/docs/topics/db/queries.txt
===================================================================
--- django/trunk/docs/topics/db/queries.txt     2009-02-03 22:10:46 UTC (rev 
9813)
+++ django/trunk/docs/topics/db/queries.txt     2009-02-03 23:13:02 UTC (rev 
9814)
@@ -508,6 +508,7 @@
 than pingbacks, we construct an ``F()`` object to reference the comment count,
 and use that ``F()`` object in the query::
 
+    >>> from django.db.models import F
     >>> Entry.objects.filter(n_pingbacks__lt=F('n_comments'))
 
 Django supports the use of addition, subtraction, multiplication,


--~--~---------~--~----~------------~-------~--~----~
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