Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 5e06181be72001a241b518cbe7c6f5ce6abecb5f 1 parent fe24eca
Adrian Holovaty authored March 22, 2006

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  docs/model-api.txt
5  docs/model-api.txt
@@ -1118,7 +1118,12 @@ directly within the SQL. If you use this technique, the underlying database
1118 1118
 library will automatically add quotes and escaping to your parameter(s) as
1119 1119
 necessary.
1120 1120
 
  1121
+A final note: If all you want to do is a custom ``WHERE`` clause, you can just
  1122
+just the ``where``, ``tables`` and ``params`` arguments to the standard lookup
  1123
+API. See `Other lookup options`_.
  1124
+
1121 1125
 .. _Python DB-API: http://www.python.org/peps/pep-0249.html
  1126
+.. _Other lookup options: http://www.djangoproject.com/documentation/db_api/#other-lookup-options
1122 1127
 
1123 1128
 Using models
1124 1129
 ============

0 notes on commit 5e06181

Please sign in to comment.
Something went wrong with that request. Please try again.