Skip to content

Commit b00f5a5

Browse files
authored
Merge pull request #1300 from ArnavBallinCode/fix/issue-1276-speaker-acceptance-link-oof
Fix Speaker Acceptance Confirmation Link Returning 500 Error
2 parents 32a6c01 + 073f140 commit b00f5a5

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

app/eventyay/cfp/views/user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ def get_object(self):
219219
def dispatch(self, request, *args, **kwargs):
220220
if request.user.is_anonymous:
221221
return get_login_redirect(request)
222+
222223
if not request.user.has_perm('base.is_speaker_submission', self.submission):
223224
self.template_name = 'cfp/event/user_submission_confirm_error.html'
224225
return super().dispatch(request, *args, **kwargs)

app/eventyay/mail/default_templates.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
_(
2323
"""Hi!
2424
25-
We are happy to tell you that we accept your proposal {submission_title}
25+
We are happy to tell you that we accept your proposal "{submission_title}"
2626
to {event_name}. Please click this link to confirm your attendance:
2727
28-
{confirmation_link}
28+
{confirmation_link}
2929
3030
We look forward to seeing you at {event_name} - Please contact us if you have any
3131
questions! We will reach out again before the conference to tell you details
@@ -89,10 +89,27 @@
8989
"""Hi,
9090
9191
you have received a new proposal for your event {event_name}:
92-
{submission_title} by {speakers}.
92+
"{submission_title}" by {speakers}.
9393
You can see details at
9494
95-
{orga_url}
95+
{orga_url}
96+
97+
All the best,
98+
your {event_name} CfP system.
99+
"""
100+
)
101+
)
102+
UPDATE_SUBJECT = LazyI18nString.from_gettext(
103+
_("[{event_name}] A talk has been modified: {submission_title}")
104+
)
105+
UPDATE_TEXT = LazyI18nString.from_gettext(
106+
_(
107+
"""Hi,
108+
109+
the proposal "{submission_title}" for your event {event_name} has been modified.
110+
You can see details at
111+
112+
{orga_url}
96113
97114
All the best,
98115
your {event_name} CfP system.

0 commit comments

Comments
 (0)