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
This commit is contained in:
Adrian Holovaty 2006-03-22 23:06:22 +00:00
parent fe24eca81a
commit 5e06181be7
1 changed files with 5 additions and 0 deletions

View File

@ -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 library will automatically add quotes and escaping to your parameter(s) as
necessary. 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 .. _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 Using models
============ ============