Clarify error messages from admin action

This commit is contained in:
Benjamin Bach 2024-08-14 09:55:09 +02:00
parent b1ff3f985c
commit 1c740418f4
No known key found for this signature in database
GPG key ID: 486F0D69C845416E

View file

@ -126,13 +126,16 @@ class MemberAdmin(UserAdmin):
if member.is_active: if member.is_active:
messages.error( messages.error(
request, request,
f"This member will not receive an invite because the account is marked as active: {member.email}", f"Computer says no! This member will not receive an invite because the account is marked "
f"as active: {member.email}. That means the member has probably created a password and a username "
f"already, please tell them to use the password reminder function.",
) )
continue continue
if not member.memberships.current(): if not member.memberships.current():
messages.error( messages.error(
request, request,
f"This member will not receive an invite because it has no active membership: {member.email}", f"Computer says no! This member will not receive an invite because it has no current "
f"membership: {member.email}. You need to create a current membership before sending the invite.",
) )
continue continue
membership = member.memberships.current() membership = member.memberships.current()