This commit is contained in:
Paul Konstantin Gerke 2022-10-17 09:48:26 +02:00
parent 1f835d181d
commit 8b617b0bff
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class UserSettings(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-settings")
form_user = self.form_user_class(instance=request.user, data=request.POST) form_user = self.form_user_class(instance=request.user, data=request.POST)
form_settings = self.form_settings_class( form_settings = self.form_settings_class(
instance=request.user.settings, data=request.POST instance=request.user.settings, data=request.POST