﻿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
24908	Overridden field in modelform used in modeladmin which name is returned by get_readonly_fields	James Pic	Tim Graham <timograham@…>	"A Model ForeignKey field will appear twice in the admin if the following conditions are met:

- its ModelAdmin uses a custom ModelForm,
- the ModelForm overrides that field,
- its ModelAdmin.get_readonly_fields returns that field in edit mode.

Example:
https://github.com/jpic/double_readonly_field/raw/master/demo.png

Test project reproducing this issue:
- https://github.com/jpic/double_readonly_field

Related:
- https://github.com/yourlabs/django-autocomplete-light/issues/235
- https://github.com/yourlabs/django-autocomplete-light/issues/440"	Bug	closed	contrib.admin	1.8	Normal	fixed			Ready for checkin	1	0	0	0	0	0
