diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2006-05-06 00:26:24 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2006-05-06 00:26:24 +0000 |
| commit | f57e34e99038bf0834638e6690d04d3ca59cde81 (patch) | |
| tree | 977138ec602a78ec141d8a5a9613157b51629691 /docs/model-api.txt | |
| parent | 3f932e31dc4f1c4146ed42f7dc8ca7154b06481a (diff) | |
Fixed #1579 - added support for 'Q' objects in limit_choices_to.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index a807efc0d6..72c7f5d8b7 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -704,6 +704,10 @@ relationship should work. All are optional: ``pub_date`` before the current date/time to be chosen. + Instead of a dictionary this can also be a ``Q`` object + (an object with a ``get_sql()`` method) for more complex + queries. + Not compatible with ``edit_inline``. ``max_num_in_admin`` For inline-edited objects, this is the maximum |
