[3.1.x] Corrected admin.E023 message in docs.

Backport of d1f89c9b9a from master
This commit is contained in:
Hasan Ramezani 2021-03-03 15:04:47 +01:00 committed by Mariusz Felisiak
parent 350c69113a
commit 05066ad961
1 changed files with 2 additions and 1 deletions

View File

@ -585,7 +585,8 @@ with the admin site:
* **admin.E022**: The value of ``radio_fields`` refers to ``<field name>``,
which is not an attribute of ``<model>``.
* **admin.E023**: The value of ``radio_fields`` refers to ``<field name>``,
which is not a ``ForeignKey``, and does not have a ``choices`` definition.
which is not instance of ``ForeignKey``, and does not have a ``choices``
definition.
* **admin.E024**: The value of ``radio_fields[<field name>]`` must be either
``admin.HORIZONTAL`` or ``admin.VERTICAL``.
* **admin.E025**: The value of ``view_on_site`` must be either a callable or a