﻿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
2599	[PATCH] raw_id_admin field has incorrect value in admin form after validation errors	Christopher Lenz <cmlenz@…>	Adrian Holovaty	"I'm not sure what this is all about, I'm I was having the following problem:

In the admin for an object that has a raw_id_admin field, when opening an object for editing, the value of the text input is correct: a comma-separated list of IDs:

{{{
#!xml
  <input type=""text"" value=""1,2,3"" ... />
}}}

However, when saving the object but getting validation errors, the form field suddenly contains the `repr` of the equivalent Python list in the value attribute:

{{{
#!xml
  <input type=""text"" value=""[&#39;1&#39;, &#39;2&#39;, &#39;3&#39;]"" ... />
}}}

I'll attach a patch that fixes this, but I'm really not sure where the actual problem is, and where it should be ideally fixed."	defect	closed	contrib.admin	0.95	normal	fixed			Unreviewed	0	0	0	0	0	0
