From 75ee7057e98dd9725fabb98cabe42966fa4c8222 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 26 Nov 2021 11:16:35 +0100 Subject: [PATCH] Refs #33163 -- Corrected example of connection signal handlers in AppConfig.ready(). --- docs/topics/signals.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/topics/signals.txt b/docs/topics/signals.txt index 3e5c09b63a..058218af1a 100644 --- a/docs/topics/signals.txt +++ b/docs/topics/signals.txt @@ -142,6 +142,7 @@ Now, our ``my_callback`` function will be called each time a request finishes. connect signal handlers:: from django.apps import AppConfig + from django.core.signals import request_finished class MyAppConfig(AppConfig): ... @@ -150,7 +151,7 @@ Now, our ``my_callback`` function will be called each time a request finishes. # Implicitly connect a signal handlers decorated with @receiver. from . import signals # Explicitly connect a signal handler. - signals.request_finished.connect(signals.my_callback) + request_finished.connect(signals.my_callback) .. note::