1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-30 05:11:10 +02:00

Add script to create channels per tournament, pools and teams. Put channels in categories

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-28 13:50:04 +02:00
parent 784002c085
commit a5c210e9b6
10 changed files with 273 additions and 35 deletions

View File

@ -3,7 +3,6 @@
from channels.generic.websocket import AsyncJsonWebsocketConsumer
from django.contrib.auth.models import User
from participation.models import Team, Pool, Tournament
from registration.models import Registration
from .models import Channel, Message
@ -78,6 +77,7 @@ class ChatConsumer(AsyncJsonWebsocketConsumer):
{
'id': channel.id,
'name': channel.name,
'category': channel.category,
'read_access': True,
'write_access': await write_channels.acontains(channel),
}