summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorArne Brodowski <mail@arnebrodowski.de>2014-01-24 14:35:17 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2014-01-24 17:40:24 +0100
commit38be3cf5e4c4980b484e1013c2a4047725ba8d3e (patch)
treef5c544fafd3ba9089e6aadc3c7befcbd677e9154 /django
parente1d18b9d2e8ac292940f070b0a8cb9733756acd9 (diff)
Fixed #21870 -- Admin check for list_editable_item
During the admin check for list_editable _check_list_editable_item should return an empty list if all checks pass. Additionally the Testcase test_readonly_and_editable was changed to test what the name implies instead of duplicating the logic of test_readonly.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/checks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/admin/checks.py b/django/contrib/admin/checks.py
index 515cedcf69..f768374d54 100644
--- a/django/contrib/admin/checks.py
+++ b/django/contrib/admin/checks.py
@@ -791,6 +791,8 @@ class ModelAdminChecks(BaseModelAdminChecks):
id='admin.E126',
)
]
+ else:
+ return []
def _check_search_fields(self, cls, model):
""" Check search_fields is a sequence. """