mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
signals: Document the weird unused import for signal registration.
This commit is contained in:
@@ -16,6 +16,11 @@ class ZerverConfig(AppConfig):
|
||||
name = "zerver" # type: str
|
||||
|
||||
def ready(self) -> None:
|
||||
# We import zerver.signals here for the side effect of
|
||||
# registering the user_logged_in signal receiver. This import
|
||||
# needs to be here (rather than e.g. at top-of-file) to avoid
|
||||
# running that code too early in Django's setup process, but
|
||||
# in any case, this is an intentionally unused import.
|
||||
import zerver.signals
|
||||
|
||||
if settings.POST_MIGRATION_CACHE_FLUSHING:
|
||||
|
||||
Reference in New Issue
Block a user