Commit 932297bf by Őry Máté

dashboard: add SuccessMessageMixin to GroupProfileUpdate

parent 5f741f60
...@@ -1620,10 +1620,12 @@ class GroupCreate(GroupCodeMixin, LoginRequiredMixin, TemplateView): ...@@ -1620,10 +1620,12 @@ class GroupCreate(GroupCodeMixin, LoginRequiredMixin, TemplateView):
return redirect(savedform.profile.get_absolute_url()) return redirect(savedform.profile.get_absolute_url())
class GroupProfileUpdate(GroupCodeMixin, LoginRequiredMixin, UpdateView): class GroupProfileUpdate(SuccessMessageMixin, GroupCodeMixin,
LoginRequiredMixin, UpdateView):
form_class = GroupProfileUpdateForm form_class = GroupProfileUpdateForm
model = Group model = Group
success_message = _('Group is successfully updated.')
@classmethod @classmethod
def get_available_group_codes(cls, request, extra=None): def get_available_group_codes(cls, request, extra=None):
......
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