Commit 5f741f60 by Őry Máté

dashboard: use proper FormMixin methods in GroupProfileUpdate

parent cd464162
...@@ -1662,9 +1662,9 @@ class GroupProfileUpdate(GroupCodeMixin, LoginRequiredMixin, UpdateView): ...@@ -1662,9 +1662,9 @@ class GroupProfileUpdate(GroupCodeMixin, LoginRequiredMixin, UpdateView):
self.object = self.get_object() self.object = self.get_object()
form = self.get_form_object(request, self.object, self.request.POST) form = self.get_form_object(request, self.object, self.request.POST)
if not form.is_valid(): if not form.is_valid():
return self.get(request, form, *args, **kwargs) return self.form_invalid(form)
form.save() form.save()
return redirect(self.object.get_absolute_url()) return self.form_valid(form)
class VmDelete(LoginRequiredMixin, DeleteView): class VmDelete(LoginRequiredMixin, DeleteView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment