mirror of https://github.com/snachodog/mybuddy.git
Fix copy-pasta mistake redirecting to the wrong page
This commit is contained in:
parent
f559f553a0
commit
901bb99bd7
|
@ -224,7 +224,7 @@ class UserAddDevice(LoginRequiredMixin, RegenerateApiKey, View):
|
||||||
|
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
if self.handle_api_key_post(request):
|
if self.handle_api_key_post(request):
|
||||||
return redirect("babybuddy:user-settings")
|
return redirect("babybuddy:user-add-device")
|
||||||
else:
|
else:
|
||||||
raise BadRequest()
|
raise BadRequest()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue