Fix copy-pasta mistake redirecting to the wrong page

This commit is contained in:
Paul Konstantin Gerke 2022-10-19 21:30:21 +02:00
parent f559f553a0
commit 901bb99bd7
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class UserAddDevice(LoginRequiredMixin, RegenerateApiKey, View):
def post(self, request):
if self.handle_api_key_post(request):
return redirect("babybuddy:user-settings")
return redirect("babybuddy:user-add-device")
else:
raise BadRequest()