diff --git a/elections/utils.py b/elections/utils.py index 7cf2e47..b2e3f05 100644 --- a/elections/utils.py +++ b/elections/utils.py @@ -189,7 +189,7 @@ def send_mail(election, mail_form): body=mail_form.cleaned_data["message"].format( full_name=v.full_name, election_url=url, - username=v.get_username, + username=v.get_username(), password=password, ), to=[v.email],