summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-03-22 23:06:22 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-03-22 23:06:22 +0000
commit5e06181be72001a241b518cbe7c6f5ce6abecb5f (patch)
tree738c1310e8fc320c013be780347946fb9b2f629d /docs/model-api.txt
parentfe24eca81aee4c75365101430940d2fbb5979bc6 (diff)
Added note to docs/model-api.txt about custom WHERE clauses
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
-rw-r--r--docs/model-api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index e84de76db7..ecd813b17d 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -1118,7 +1118,12 @@ directly within the SQL. If you use this technique, the underlying database
library will automatically add quotes and escaping to your parameter(s) as
necessary.
+A final note: If all you want to do is a custom ``WHERE`` clause, you can just
+just the ``where``, ``tables`` and ``params`` arguments to the standard lookup
+API. See `Other lookup options`_.
+
.. _Python DB-API: http://www.python.org/peps/pep-0249.html
+.. _Other lookup options: http://www.djangoproject.com/documentation/db_api/#other-lookup-options
Using models
============