Skip to content

Commit

Permalink
Change constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarnes committed Jan 17, 2025
1 parent 1ce5b84 commit 40ca1d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ def feedback_view(request):
if form.is_valid():
name = form.cleaned_data["name"]
message = form.cleaned_data["message"]
email_address = (
settings.GOVUK_NOTIFY_TEST_EMAIL
) # Set email address
email_address = settings.GOVUK_NOTIFY_EMAIL # Set email address

try:
response = send_email_notification(
Expand Down
2 changes: 1 addition & 1 deletion fbr/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
# GOV Notify
GOVUK_NOTIFY_API_KEY = env.str("GOVUK_NOTIFY_API_KEY", default=None)
GOVUK_NOTIFY_TEMPLATE_ID = env.str("GOVUK_NOTIFY_TEMPLATE_ID", default=None)
GOVUK_NOTIFY_TEST_EMAIL = env.str("GOVUK_NOTIFY_TEST_EMAIL", default=None)
GOVUK_NOTIFY_EMAIL = env.str("GOVUK_NOTIFY_EMAIL", default=None)

# Suppress email sending for testing, local dev etc
SUPPRESS_NOTIFY = env.bool("SUPPRESS_NOTIFY", default=False)
2 changes: 1 addition & 1 deletion local.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ GOOGLE_ANALYTICS_TAG_MANAGER_ID=XXX-XXXXXXX # Check passman or ask a colleague
# GOV Notify
GOVUK_NOTIFY_API_KEY=xxx # Check passman or ask a colleague
GOVUK_NOTIFY_TEMPLATE_ID=xxx # Check passman or ask a colleague
GOVUK_NOTIFY_TEST_EMAIL=xxx # Your own email address
GOVUK_NOTIFY_EMAIL=xxx # Your own email address

0 comments on commit 40ca1d1

Please sign in to comment.