2024-04-22 22:22:18 +00:00
|
|
|
# Copyright (C) 2024 by Animath
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
from django.apps import AppConfig
|
2024-04-28 15:04:34 +00:00
|
|
|
from django.db.models.signals import post_save
|
2024-04-22 22:22:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ChatConfig(AppConfig):
|
|
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
|
|
name = "chat"
|
2024-04-28 15:04:34 +00:00
|
|
|
|
|
|
|
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")
|