core: add anotation type
This commit is contained in:
parent
e253631f09
commit
246213c5b8
@ -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)
|
Loading…
Reference in New Issue
Block a user