﻿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
31866	Proxy model is ignored when referenced in select_for_update's 'of' parameter	Daniel Hillier	Daniel Hillier	"When referring to a proxy model as a FK in a `select_for_update()` call, the proxy model's table is silently omitted from the `FOR UPDATE` clause in the resulting SQL.

Also, if a model has a FK to a proxy model, the `FieldError` that is supposed to be raised when an any inappropriate field is found in a `select_for_update()` call will crash with `AttributeError: 'NoneType' object has no attribute 'name'` .

Tested with postgres but I don't think this is specific to that db."	Bug	closed	Database layer (models, ORM)	2.2	Normal	fixed	proxy select_for_update		Ready for checkin	1	0	0	0	0	0
