Fetch registrations by user id
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
ceedd0678c
commit
78a43148a8
|
@ -47,7 +47,7 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
|
||||||
|
|
||||||
# Fetch the registration of the current user
|
# Fetch the registration of the current user
|
||||||
user = self.scope['user']
|
user = self.scope['user']
|
||||||
reg = await Registration.objects.aget(user=user)
|
reg = await Registration.objects.aget(user_id=user.id)
|
||||||
self.registration = reg
|
self.registration = reg
|
||||||
|
|
||||||
# Accept the connection
|
# Accept the connection
|
||||||
|
|
Loading…
Reference in New Issue