﻿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
24746	Add support for excluding callables in child ModelAdmin defined in its super	Markus Amalthea Magnuson	nobody	"If I have a super `ModelAdmin` class that defines `list_display` with some callable, there is no obvious way to have this callable in the `exclude` attribute in subclasses of the same `ModelAdmin`. See example:

{{{#!python
class ParentAdmin(admin.ModelAdmin):
    def my_callable(obj):
        # Some custom stuff here.
        return obj

    list_display = ('name', 'description', my_callable)

class ChildAdmin(admin.ModelAdmin):
    exclude = ('description',) # I want to exclude my_callable but I can't!
}}}

I currently achieve this through weird hacks such as filtering the parent attribute to exclude items with a certain func_name, etc.

Or am I missing something obvious?"	Uncategorized	closed	contrib.admin	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
