Skip to content

Commit 950a07c

Browse files
committed
Properly reference to attendee object
Referencing the "a" variable would crash if an email was sent to only pending registrations and no active ones.
1 parent 69cd52c commit 950a07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresqleu/confreg/management/commands/confreg_send_emails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _render_and_send(email, attendee, firstname, lastname):
5757
'body': body,
5858
'linkback': True,
5959
},
60-
receivername=a.fullname,
60+
receivername=attendee.fullname,
6161
)
6262

6363
# Send to all regular recipients, where we can render a recipient specific version

0 commit comments

Comments
 (0)