Skip to content

emails not including usernames #1987

@ckravit

Description

@ckravit

I noticed that emails when a participant joins a competition did not include their usernames even though the base_email.html seems to look for it.
Anticipated problem:
The problem is in how the email context is set up in the competition participation emails.

How I fixed on mine:
In the src/apps/competitions/emails.py I updated the the 3 places where this shows up:

context = {
    'participant': participant  
}

with this

context = {  
    'participant': participant,  
    'user': participant.user  
}

Please let me know if that was the right thing to do.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BeginnerThis would be a good task for a beginner to take on, to learn about the projectBug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions