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