[settings] Fix form display and show widgets
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user