﻿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
20352	ModelAdmin form validation does not check inherited get_readonly_fields()	soulne4ny	nobody	"While trying to create a custom _base_ class InlineModelAdmin with a set of predefined ""evaluated""-fields I found that a _child_ inline model admin gets an error

    ImproperlyConfigured: 'AnInlineModelAdmin.fields' refers to field 'base_field' that is missing from the form.

For more flexibility I didn't use the readonly_fields attribute, but the get_readonly_fields() method.

However, it works when the readonly_fields attribute is set.  After looking in the admin validation code, I found that get_readonly_fields() works well with redefined get_form(), even if it just returns super().

It would be nice to have consistent behavoiur %)"	Bug	closed	contrib.admin	1.5	Normal	invalid	admin readonly fields validation		Unreviewed	0	0	0	0	0	0
