Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added 'How this is possible' section to docs/db-api.txt, describing k…

…eyword arguments in the API

git-svn-id: http://code.djangoproject.com/svn/django/trunk@407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 05d074670a069465d2e4fad2ff1e716f59a61bed 1 parent f5b22bf
Adrian Holovaty authored August 05, 2005

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

  1. 8  docs/db-api.txt
8  docs/db-api.txt
@@ -47,6 +47,12 @@ translates (roughly) into the following SQL:
47 47
 
48 48
     SELECT * FROM polls_polls WHERE pub_date < NOW();
49 49
 
  50
+.. admonition:: How this is possible
  51
+
  52
+   Python has the ability to define functions that accept arbitrary name-value
  53
+   arguments whose names and values are evaluated at run time. For more
  54
+   information, see `Keyword Arguments`_ in the official Python tutorial.
  55
+
50 56
 The DB API supports the following lookup types:
51 57
 
52 58
     ===========  ==============================================================
@@ -113,6 +119,8 @@ statements are equivalent::
113 119
     choices.get_list(poll__id__exact=3)
114 120
     choices.get_list(poll__pk=3)
115 121
 
  122
+.. _`Keyword Arguments`: http://docs.python.org/tut/node6.html#SECTION006720000000000000000
  123
+
116 124
 Ordering
117 125
 ========
118 126
 

0 notes on commit 05d0746

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