From 246213c5b8a452189f1ff8e412887ff610be0a6a Mon Sep 17 00:00:00 2001 From: starnakin Date: Sun, 29 Oct 2023 21:00:18 +0100 Subject: [PATCH] core: add anotation type --- accounts/views/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/views/register.py b/accounts/views/register.py index d0e5361..de4389c 100644 --- a/accounts/views/register.py +++ b/accounts/views/register.py @@ -23,7 +23,7 @@ class RegisterView(View): if User.objects.filter(username=username).exists(): return HttpResponse(USERNAME_ALREADY_USED) - user = User.objects.create_user(username, password=password) + user: User = User.objects.create_user(username, password=password) user.save() return HttpResponse(USER_ADDED) \ No newline at end of file