Membership invitations and order emails #47
|
@ -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(
|
||||||
benjaoming marked this conversation as resolved
|
|||||||
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
Is the idea not that the member does not have a membership and thus should be sent an invite?
I've replaced "active" with "current" - the idea is that we should not invite members before we have also created their membership + order (there's another admin function for that).
Once the actions are defined, we can maybe merge some of the stuff into a single-click action... but I just wanna make sure that we keep the flexibility for now.. until the whole signup/apply process is defined.