mirror of https://github.com/snachodog/mybuddy.git
Black
This commit is contained in:
parent
1f835d181d
commit
8b617b0bff
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue