diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-06 23:08:29 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-06 23:08:29 +0000 |
| commit | af4bef19add46f4673ac4c648c8805808ed65eec (patch) | |
| tree | 84969bb65226bb7b56a5627943b3c27dcc65b2e3 /docs/model-api.txt | |
| parent | 1b626e40839d24f2e7cd09ca7a4d5bd440ca49e7 (diff) | |
Documented meta.Admin list_select_related option from [1092]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index 9922072b8a..a9190c78fe 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -900,6 +900,14 @@ object, which takes the following parameters. All are optional. (This example also has ``search_fields`` defined; see below). +``list_select_related`` + Either ``True`` or ``False``. Default is ``False``. If ``True``, the admin + change list page will use the ``select_related`` database-API parameter in + its query that retrieves the list of items. + + Note that Django will use ``select_related``, regardless of this setting, + if one of the ``list_display`` fields is a ``ForeignKey``. + ``ordering`` A list or tuple (see the `META options`_, above) that gives a different ordering for the admin change list. If this isn't given, the |
