﻿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
33549	Cannot use functools.partial when connecting to a signal handler when DEBUG=False	Salaah Amin	nobody	"Come across an issue where a signal is not handled when using `functools.partails` to connect to a function when `DEBUG=False`.

We have the following code:
{{{#!python
from functools import partial
from django import dispatch


signal_name = django_dispatch.Signal()
signal_name.connect(
    partial(signal_handler, some_attr=False),
    sender=model
)
}}}

When debug is `True` and the signal is fired, then the function `signal_handler` is executed.
However, when debug is `False`, the code is not executed.

I added a print statement at the start of the function, and the function does not read `settings.DEBUG`.
"	Bug	closed	Core (Other)	3.2	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
