Skip to content
Snippets Groups Projects
Commit f992c117 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

rename second_form to profile_form

parent 211859e9
No related branches found
No related tags found
1 merge request!31Alias
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment