[settings] Fix form display and show widgets

This commit is contained in:
2026-03-20 13:17:53 -04:00
parent 64ec3c1cca
commit f4de4dbcb7
2 changed files with 51 additions and 1 deletions

View File

@ -23,3 +23,8 @@ class ProfileFormView(LoginRequiredMixin, FormView):
def form_valid(self, form):
form.save()
return super(ProfileFormView, self).form_valid(form)
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["user_id"] = self.request.user.id
return context