formated changes

This commit is contained in:
asaki222 2024-09-04 19:53:44 -04:00
parent ef30e06b89
commit 68b8a6086b
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4

View file

@ -842,18 +842,15 @@ class DomainAddUserView(DomainFormBaseView):
invite = DomainInvitation.objects.get(email=email, domain=self.object)
# check if the invite has already been accepted
if invite.status == DomainInvitation.DomainInvitationStatus.RETRIEVED:
add_success=False
add_success = False
messages.warning(
self.request,
f"{email} is already a manager for this domain.",
)
else:
add_success=False
#else if it has been sent but not accepted
messages.warning(
self.request,
f"{email} has already been invited to this domain"
)
add_success = False
# else if it has been sent but not accepted
messages.warning(self.request, f"{email} has already been invited to this domain")
except Exception:
logger.error("An error occured")