diff --git a/readthedocs/organizations/views/base.py b/readthedocs/organizations/views/base.py index 0cfdfaf1307..42ad5bc3d0b 100644 --- a/readthedocs/organizations/views/base.py +++ b/readthedocs/organizations/views/base.py @@ -40,7 +40,7 @@ def dispatch(self, *args, **kwargs): # Mixins -class OrganizationMixin(CheckOrganizationsEnabled): +class OrganizationMixin(SuccessMessageMixin, CheckOrganizationsEnabled): """ Mixin class that provides organization sublevel objects. @@ -132,7 +132,7 @@ def get_form(self, data=None, files=None, **kwargs): # Base views -class OrganizationView(CheckOrganizationsEnabled): +class OrganizationView(SuccessMessageMixin, CheckOrganizationsEnabled): """Mixin for an organization view that doesn't have nested components.""" @@ -168,7 +168,7 @@ def get_success_url(self): ) -class OrganizationOwnerView(SuccessMessageMixin, OrganizationMixin): +class OrganizationOwnerView(OrganizationMixin): """Mixin for views related to organization owners.""" @@ -209,7 +209,7 @@ def get_success_url(self): ) -class OrganizationTeamView(SuccessMessageMixin, OrganizationTeamMixin): +class OrganizationTeamView(OrganizationTeamMixin): """Mixin for views related to organization teams.""" @@ -232,7 +232,7 @@ def get_success_url(self): ) -class OrganizationTeamMemberView(SuccessMessageMixin, OrganizationTeamMixin): +class OrganizationTeamMemberView(OrganizationTeamMixin): """Mixin for views related to organization team members.""" diff --git a/readthedocs/organizations/views/private.py b/readthedocs/organizations/views/private.py index fef862f57e6..2a90065bba7 100644 --- a/readthedocs/organizations/views/private.py +++ b/readthedocs/organizations/views/private.py @@ -117,6 +117,7 @@ class EditOrganization( UpdateView, ): template_name = "organizations/admin/organization_edit.html" + success_message = _("Organization updated") class DeleteOrganization( @@ -126,6 +127,7 @@ class DeleteOrganization( DeleteViewWithMessage, ): template_name = "organizations/admin/organization_delete.html" + success_message = _("Organization deleted") def get_success_url(self): return reverse_lazy("organization_list")