﻿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
24487	Need for some retrocompatibility guidance for devs, on new OrderedDict usage	pascal chambon	nobody	"
The change from SortedDict to OrderedDict in django1.7 was not a drop-in replacement, not only because several libs relied on the ""hackish"" keyOrder to sort field, but also because the methods below have disappeared, breaking libs (liek userprofile related stuffs) that made good use of them :

{{{
 insert(index, key, value)
Inserts the key, value pair before the item with the given index.""

value_for_index(index)
Returns the value of the item at the given zero-based index.
}}}
 
Wouldn't it be helpful to add back these methods, in a subclass of OrderedDict ? Or to provide some guidance on how people are supposed to dynamically actiavte/deactivation form fields, now ? 

It's unclear if completely replacing ""myform.fields"" with a new ordereddict, to achieve this, might be harmful.

"	Bug	closed	Uncategorized	1.7	Normal	wontfix			Unreviewed	0	0	0	0	0	0
