﻿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
28169	Unable to disconnect signal	James Addison	nobody	"I am looking to disconnect the `post_init` signal in a management command due to exceptions it raises in my scenario.  My disconnect looks like this:

{{{#!python
signals.post_init.disconnect(ImageField.update_dimension_fields, sender=Bug)
}}}

If I'm doing something wrong, I'd love to know what.

Digging in a bit, it's caused by the fact that the lookup key generated in the `.connect()` at https://github.com/django/django/blob/stable/1.11.x/django/dispatch/dispatcher.py#L105 differs from the one generated in `.disconnect()` at https://github.com/django/django/blob/stable/1.11.x/django/dispatch/dispatcher.py#L153

Maybe related to #22657.  See the attached project to reproduce.

"	Bug	closed	Database layer (models, ORM)	1.11	Normal	invalid			Unreviewed	0	0	0	0	0	0
