Fix reference in ModelAdmin.ordering docs.

pull/4879/head
Sergey Fedoseev 2018-10-30 16:22:50 +05:00 zatwierdzone przez Matt Westcott
rodzic 5b0f2e1a54
commit 29c8ad6637
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -51,6 +51,7 @@ os.environ['DATABASE_ENGINE'] = 'django.db.backends.sqlite3'
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
]
if not on_rtd:
@ -128,6 +129,11 @@ pygments_style = 'sphinx'
spelling_lang = 'en_GB'
spelling_word_list_filename='spelling_wordlist.txt'
# sphinx.ext.intersphinx settings
intersphinx_mapping = {
'django': ('https://docs.djangoproject.com/en/stable/', 'https://docs.djangoproject.com/en/stable/_objects/')
}
# -- Options for HTML output ----------------------------------------------

Wyświetl plik

@ -304,7 +304,7 @@ your project is using, and without any additional setup or configuration.
---------------------------
**Expected value**: A list or tuple in the same format as a models
[``ordering``](https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display) parameter.
:attr:`~django.db.models.Options.ordering` parameter.
Set ``ordering`` to specify the default ordering of objects when listed by
IndexView. If not provided, the models default ordering will be respected.