Clarify error messages from admin action
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
b1ff3f985c
commit
1c740418f4
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue