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:
@ -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),
|
||||
}
|
||||
|
Reference in New Issue
Block a user