diff --git a/django/contrib/admin/validation.py b/django/contrib/admin/validation.py
index fa6d7e3..f687a84 100644
a
|
b
|
def validate(cls, model):
|
85 | 85 | raise ImproperlyConfigured("'%s' cannot be in both '%s.list_editable'" |
86 | 86 | " and '%s.list_display_links'" |
87 | 87 | % (field, cls.__name__, cls.__name__)) |
| 88 | if not cls.list_display_links and cls.list_display[0] in cls.list_editable: |
| 89 | raise ImproperlyConfigured("'%s.list_editable[%d]' refers to the" |
| 90 | " first field in list_display, which can't be used unless" |
| 91 | " list_display_links is set." % (cls.__name__, idx)) |
| 92 | |
88 | 93 | |
89 | 94 | |
90 | 95 | # search_fields = () |