From 166135a2362a9b8bf3d74873f1a2f802d3e5a3a1 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:35:38 -0700 Subject: [PATCH] Add comment --- src/registrar/views/domain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/registrar/views/domain.py b/src/registrar/views/domain.py index c7981f617..653eb8661 100644 --- a/src/registrar/views/domain.py +++ b/src/registrar/views/domain.py @@ -786,7 +786,9 @@ class DomainAddUserView(DomainFormBaseView): return redirect(self.get_success_url()) - +# The order of the superclasses matters here. BaseDeleteView has a bug where the +# "form_valid" function does not call super, so it cannot use SuccessMessageMixin. +# The workaround is to use SuccessMessageMixin first. class DomainInvitationDeleteView(SuccessMessageMixin, DomainInvitationPermissionDeleteView): object: DomainInvitation # workaround for type mismatch in DeleteView