kopia lustrzana https://github.com/wagtail/wagtail
Fix reference in ModelAdmin.ordering docs.
rodzic
5b0f2e1a54
commit
29c8ad6637
|
@ -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 ----------------------------------------------
|
||||
|
||||
|
|
|
@ -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 model’s
|
||||
[``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 model’s default ordering will be respected.
|
||||
|
|
Ładowanie…
Reference in New Issue