From f992c117f4c58ad8181cbc69ca8ac7b6aeac2317 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Tue, 3 Mar 2020 14:25:16 +0100 Subject: [PATCH] rename second_form to profile_form --- apps/member/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/member/views.py b/apps/member/views.py index 1ca902db..d2acb8f1 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -58,14 +58,12 @@ class UserUpdateView(LoginRequiredMixin, UpdateView): fields = ['first_name', 'last_name', 'username', 'email'] template_name = 'member/profile_update.html' context_object_name = 'user_object' - second_form = ProfileForm + profile_form = ProfileForm def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - context["profile_form"] = self.second_form( - instance=context['user_object'].profile) + context['profile_form'] = self.profile_form(instance=context['user_object'].profile) context['title'] = _("Update Profile") - return context def get_form(self, form_class=None):