Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

fix: corrected typo in setting constant #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ settings:

CBMAIL = {
'DEFAULT_REPLY_TO': "examplereplyto@example.com",
'DEFAULT_SUJECT': "Example subject",
'DEFAULT_SUBJECT': "Example subject",
'BASE_URL': "https://domain.com",
'EXTRA_DATA': {},
'WHITELIST': []
Expand Down
4 changes: 2 additions & 2 deletions cbmail/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def get_mail_from(self):
def get_subject(self):
"""
Returns the subject to be used on the subject email field
If one is not provided it will get the DEFAULT_SUJECT setting
If one is not provided it will get the DEFAULT_SUBJECT setting
"""
if self.subject:
return self.subject
return settings.DEFAULT_SUJECT
return settings.DEFAULT_SUBJECT

def get_template_name(self):
""" Returns the template name to be used to render the email """
Expand Down
2 changes: 1 addition & 1 deletion cbmail/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

DEFAULTS = {
'DEFAULT_REPLY_TO': 'examplereplyto@example.com',
'DEFAULT_SUJECT': 'Example subject',
'DEFAULT_SUBJECT': 'Example subject',
'BASE_URL': None,
'EXTRA_DATA': {},
'WHITELIST': []
Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
),
CBMAIL={
'DEFAULT_REPLY_TO': "replyto@unittest.com",
'DEFAULT_SUJECT': "Unit test default",
'DEFAULT_SUBJECT': "Unit test default",
'BASE_URL': "https://domain.com",
},
DEFAULT_FROM_EMAIL="unit@unit.com",
Expand Down