﻿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
11682	[soc2009/admin-ui] index can be 0 causing saving model with inlines to fail	Fred Bartle	nobody	"In forms/models.py r11400

{{{
678 	                try:
679 	                    if index:
680 	                        pk_value = self.get_queryset()[index].pk
681 	                    else:
682 	                        pk_value = None
683 	                except IndexError:
684 	                    pk_value = None
}}}

'index' can be zero and therefore evaluate to False, pk_value is set to None, and the hidden AutoField is rendered without a pk value, causing a save to fail.

I did not see soc2009/admin-ui in version dropdown, so I left version empty."		closed	contrib.admin	soc2009/admin-ui		fixed	admin-ui		Unreviewed	1	0	0	0	0	0
