diff --git a/draw/consumers.py b/draw/consumers.py index 2096c37..a3f091a 100644 --- a/draw/consumers.py +++ b/draw/consumers.py @@ -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