Add comment

This commit is contained in:
zandercymatics 2024-02-13 10:35:38 -07:00
parent 5412933d4d
commit 166135a236
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -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