﻿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
22657	Can't disconnect signal if connected using @receiver tag	michalsicker@…	nobody	"I got signal handler function hooked to pre_save signal using @receiver. 

When I tried to disconnect that signal handler temporarily in TestCase, I couldn't achieve that. The lookup key generated in dispatcher (lookup_key = (_make_id(receiver), _make_id(sender))) in order to match function which should be disconnected has other value than it should have so the function can't be found in self.receivers and handler doesn't get disconnected. 

That's probably because in self.receivers there is a lookup key generated based on ""wrapper"" function which had been taken to generate that lookup when registering handler, not the original one, that's why importing original function and passing it to .disconnect() doesn't work.

When signal connected without using @receiver but using pre_save.connect it works as expected."	Bug	closed	Database layer (models, ORM)	1.6	Normal	worksforme	@receiver signal disconnect		Unreviewed	0	0	0	0	0	0
