﻿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
13004	The new get_readonly_fields() method of the ModelAdmin breaks with many to many fields	hejsan	nobody	"This breaks if a ManyToMany field is specified as readonly.

This is because the contents() function that is called in the fieldset.html template tries to display the value of the field but gets a ValueError if it is a ManyToManyField because they can't be used: ""[Model name] instance needs to have a primary key value before a many-to-many relationship can be used""

Just need to add ValueError to the catch as seen in the patch I attached, called catch_value_error.diff.
Hope it gets merged before beta 2."		closed	contrib.admin	1.2-beta		fixed			Accepted	1	0	0	0	0	0
