1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #34601 -- Added field name to check message for ModelAdmin.readonly_fields.

Co-authored-by: Rick van Hattem <wolph@wol.ph>
This commit is contained in:
nessita
2023-06-05 00:56:53 -03:00
committed by GitHub
parent f9936deed1
commit 89c27d8672
3 changed files with 12 additions and 8 deletions

View File

@@ -675,8 +675,9 @@ with the admin site:
* **admin.E033**: The value of ``ordering`` refers to ``<field name>``, which
is not a field of ``<model>``.
* **admin.E034**: The value of ``readonly_fields`` must be a list or tuple.
* **admin.E035**: The value of ``readonly_fields[n]`` is not a callable, an
attribute of ``<ModelAdmin class>``, or an attribute of ``<model>``.
* **admin.E035**: The value of ``readonly_fields[n]`` refers to
``<field_name>``, which is not a callable, an attribute of
``<ModelAdmin class>``, or an attribute of ``<model>``.
* **admin.E036**: The value of ``autocomplete_fields`` must be a list or tuple.
* **admin.E037**: The value of ``autocomplete_fields[n]`` refers to
``<field name>``, which is not a field of ``<model>``.