﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22792	Check rule for list_display_links is incorrect	Ben Davis	Greg Chapple	"This use case should be allowed according to the documentation:

{{{
#!python
@admin.register(products.Product)
class ModelAdmin(admin.ModelAdmin):
    list_display = ['brand', 'product', 'category']
    list_editable = list_display
    list_display_links = None
}}}

However, checks will fail saying:

    <class 'products.admin.ProductAdmin'>: (admin.E124) The value of 'list_editable[0]' refers to the first field in 'list_display' ('brand'), which cannot be used unless 'list_display_links' is set.

I think this check is a mistake. What it should be checking for is this: If the first values of `list_editable` and `list_display` are the same, list_display_links must be either set to None, or must be set to a field other than the first field in `list_display`."	Bug	closed	contrib.admin	1.7-beta-2	Release blocker	fixed			Accepted	1	0	0	0	1	0
