1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 18:22:24 +00:00

Fetch registrations by user id

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-04-06 19:12:10 +02:00
parent ceedd0678c
commit 78a43148a8
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -47,7 +47,7 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
# Fetch the registration of the current user
user = self.scope['user']
reg = await Registration.objects.aget(user=user)
reg = await Registration.objects.aget(user_id=user.id)
self.registration = reg
# Accept the connection