Skip to content

Commit 9393c4a

Browse files
committedJun 8, 2021
fix: corrected typo in setting constant
This corrects the subject typo from DEFAULT_SUJECT to DEFAULT_SUBJECT Fixes dipcode-software#22
1 parent cb77a5c commit 9393c4a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ settings:
5858
5959
CBMAIL = {
6060
'DEFAULT_REPLY_TO': "examplereplyto@example.com",
61-
'DEFAULT_SUJECT': "Example subject",
61+
'DEFAULT_SUBJECT': "Example subject",
6262
'BASE_URL': "https://domain.com",
6363
'EXTRA_DATA': {},
6464
'WHITELIST': []

‎cbmail/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ def get_mail_from(self):
8080
def get_subject(self):
8181
"""
8282
Returns the subject to be used on the subject email field
83-
If one is not provided it will get the DEFAULT_SUJECT setting
83+
If one is not provided it will get the DEFAULT_SUBJECT setting
8484
"""
8585
if self.subject:
8686
return self.subject
87-
return settings.DEFAULT_SUJECT
87+
return settings.DEFAULT_SUBJECT
8888

8989
def get_template_name(self):
9090
""" Returns the template name to be used to render the email """

‎cbmail/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
DEFAULTS = {
1111
'DEFAULT_REPLY_TO': 'examplereplyto@example.com',
12-
'DEFAULT_SUJECT': 'Example subject',
12+
'DEFAULT_SUBJECT': 'Example subject',
1313
'BASE_URL': None,
1414
'EXTRA_DATA': {},
1515
'WHITELIST': []

‎runtests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
),
1313
CBMAIL={
1414
'DEFAULT_REPLY_TO': "replyto@unittest.com",
15-
'DEFAULT_SUJECT': "Unit test default",
15+
'DEFAULT_SUBJECT': "Unit test default",
1616
'BASE_URL': "https://domain.com",
1717
},
1818
DEFAULT_FROM_EMAIL="unit@unit.com",

0 commit comments

Comments
 (0)
Please sign in to comment.