mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 05:02:23 +00:00
f26f102650
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
17 lines
573 B
Python
17 lines
573 B
Python
# Copyright (C) 2024 by Animath
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
from django.apps import AppConfig
|
|
from django.db.models.signals import post_save
|
|
|
|
|
|
class ChatConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "chat"
|
|
|
|
def ready(self):
|
|
from chat import signals
|
|
post_save.connect(signals.create_tournament_channels, "participation.Tournament")
|
|
post_save.connect(signals.create_pool_channels, "participation.Pool")
|
|
post_save.connect(signals.create_team_channel, "participation.Participation")
|