From 901bb99bd76044da5351be55af86d04c174c6a31 Mon Sep 17 00:00:00 2001 From: Paul Konstantin Gerke Date: Wed, 19 Oct 2022 21:30:21 +0200 Subject: [PATCH] Fix copy-pasta mistake redirecting to the wrong page --- babybuddy/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babybuddy/views.py b/babybuddy/views.py index de0664f2..78197112 100644 --- a/babybuddy/views.py +++ b/babybuddy/views.py @@ -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()