Author: mtredinnick
Date: 2007-10-13 21:13:13 -0500 (Sat, 13 Oct 2007)
New Revision: 6488
Modified:
django/branches/queryset-refactor/docs/db-api.txt
Log:
queryset-refactor: Re-added a docs change that was accidentally lost in the
merge in [6466].
Modified: django/branches/queryset-refactor/docs/db-api.txt
===================================================================
--- django/branches/queryset-refactor/docs/db-api.txt 2007-10-14 02:13:04 UTC
(rev 6487)
+++ django/branches/queryset-refactor/docs/db-api.txt 2007-10-14 02:13:13 UTC
(rev 6488)
@@ -1371,6 +1371,11 @@
Entry.objects.filter(blog__id=3) # __exact is implied
Entry.objects.filter(blog__pk=3) # __pk implies __id__exact
+.. note::
+ Because of this shortcut, you cannot have a field called ``pk`` that is not
+ the primary key of the model. It will always be replaced by the name of the
+ model's primary key in queries.
+
Lookups that span relationships
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---