﻿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
18391	Inline forms fail to delete objects when PK is a custom field	max@…	nobody	"I have custom field type. It's a uuid. If I make an inline form in admin interface with a model that has this custom field as a primary key I can't delete it from the admin interface. I get an error that a NoneType doesn't have some attributes.

The problem is that in _construct_form the primary key is got via get_db_prep_lookup which will always return a string. But in _existing_object when it initializes self._object_dict is just takes an object. Which must not be of a string type. 

Patch to eliminate it is attached.

"	Bug	closed	contrib.admin	dev	Normal	needsinfo	inline form custom field		Unreviewed	1	0	1	0	0	0
