diff --git a/django/dispatch/dispatcher.py b/django/dispatch/dispatcher.py index 8f57b185c3..b935df3c7f 100644 --- a/django/dispatch/dispatcher.py +++ b/django/dispatch/dispatcher.py @@ -270,7 +270,8 @@ def receiver(signal, **kwargs): """ def _decorator(func): if isinstance(signal, (list, tuple)): - [s.connect(func, **kwargs) for s in signal] + for s in signal: + s.connect(func, **kwargs) else: signal.connect(func, **kwargs) return func