@@ -23,7 +23,12 @@ class Meta:
23
23
fields = ["title" , "author" , "content" , "groups" , "expiration_date" , "notify_post" , "notify_email_all" , "update_added_date" , "pinned" ]
24
24
help_texts = {
25
25
"expiration_date" : "By default, announcements expire after two weeks. Choose the shortest time necessary." ,
26
- "notify_post" : "If this box is checked, students who have signed up for notifications will receive an email." ,
26
+ "notify_post" : (
27
+ "If this box is checked, students who have signed up for email "
28
+ "notifications will receive an email "
29
+ "and those who have signed up for push notifications will receive a "
30
+ "push notification."
31
+ ),
27
32
"notify_email_all" : (
28
33
"This will send an email notification to all of the users who can see this post. "
29
34
"This option does NOT take users' email notification preferences into account, so please use with care."
@@ -50,9 +55,12 @@ def __init__(self, user, *args, **kwargs):
50
55
else :
51
56
self .fields ["activity" ].queryset = []
52
57
self .fields ["activity" ].required = True
53
- self .fields [
54
- "notify_post"
55
- ].help_text = "If this box is checked, students who have subscribed to your club's announcements will receive an email."
58
+ self .fields ["notify_post" ].help_text = (
59
+ "If this box is checked, students who have signed up for email "
60
+ "notifications will receive an email "
61
+ "and those who have signed up for push notifications will receive a "
62
+ "push notification."
63
+ )
56
64
57
65
if "instance" in kwargs : # Don't allow changing the activity once the announcement has been created
58
66
self .fields ["activity" ].widget .attrs ["disabled" ] = True
@@ -92,7 +100,12 @@ def __init__(self, *args, **kwargs):
92
100
super ().__init__ (* args , ** kwargs )
93
101
self .fields ["expiration_date" ].help_text = "By default, announcements expire after two weeks. Choose the shortest time necessary."
94
102
95
- self .fields ["notify_post_resend" ].help_text = "If this box is checked, students who have signed up for notifications will receive an email."
103
+ self .fields ["notify_post_resend" ].help_text = (
104
+ "If this box is checked, students who have signed up for email "
105
+ "notifications will receive an email "
106
+ "and those who have signed up for push notifications will "
107
+ "receive a push notification."
108
+ )
96
109
97
110
self .fields ["notify_email_all_resend" ].help_text = (
98
111
"This will resend an email notification to all of the users who can see this post. This option "
@@ -153,7 +166,12 @@ class AnnouncementAdminForm(forms.Form):
153
166
154
167
def __init__ (self , * args , ** kwargs ):
155
168
super ().__init__ (* args , ** kwargs )
156
- self .fields ["notify_post" ].help_text = "If this box is checked, students who have signed up for notifications will receive an email."
169
+ self .fields ["notify_post" ].help_text = (
170
+ "If this box is checked, students who have signed up for email "
171
+ "notifications will receive an email "
172
+ "and those who have signed up for push notifications will receive a "
173
+ "push notification."
174
+ )
157
175
self .fields ["notify_email_all" ].help_text = (
158
176
"This will send an email notification to all of the users who can see this post. This option "
159
177
"does NOT take users' email notification preferences into account, so please use with care."
0 commit comments