﻿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
1196	[patch] AttributeError when deleting related object in admin, if related object has custom primary key	oggie rob (oz.robharvey@…	Adrian Holovaty	"I have a model like so:
class MyData(meta.Model):
    ....
class MyOtherData(meta.Model):
    my_primary = meta.ForeignKey(MyData, primary_key=True, raw_id_admin=True)

When I use the delete button in admin to remove a MyData object, I get the following error:
AttributeError: 'MyOtherData' object has no attribute 'id'

The _get_deleted_objects() method is looking for the id field rather than using the model's pk."	defect	closed	contrib.admin	dev	major	fixed			Unreviewed	1	0	0	0	0	0
