|
@@ -243,13 +243,13 @@ class MemberAdmin(UserAdmin):
|
|
email=member.email,
|
|
email=member.email,
|
|
last_call_date=member.date_last_call_for_membership_fees_email))
|
|
last_call_date=member.date_last_call_for_membership_fees_email))
|
|
|
|
|
|
- if queryset.count() == 1 and cpt_success == 1:
|
|
|
|
|
|
+ if cpt_success == 1:
|
|
member = queryset.first()
|
|
member = queryset.first()
|
|
messages.success(request,
|
|
messages.success(request,
|
|
"Le courriel de relance de cotisation a été "
|
|
"Le courriel de relance de cotisation a été "
|
|
"envoyé à {member} ({email})"\
|
|
"envoyé à {member} ({email})"\
|
|
.format(member=member, email=member.email))
|
|
.format(member=member, email=member.email))
|
|
- elif cpt_success>1:
|
|
|
|
|
|
+ elif cpt_success > 1:
|
|
messages.success(request,
|
|
messages.success(request,
|
|
"Le courriel de relance de cotisation a été "
|
|
"Le courriel de relance de cotisation a été "
|
|
"envoyé à {cpt} membres"\
|
|
"envoyé à {cpt} membres"\
|