@@ -23,7 +23,12 @@ class Meta:
2323 fields = ["title" , "author" , "content" , "groups" , "expiration_date" , "notify_post" , "notify_email_all" , "update_added_date" , "pinned" ]
2424 help_texts = {
2525 "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+ ),
2732 "notify_email_all" : (
2833 "This will send an email notification to all of the users who can see this post. "
2934 "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):
5055 else :
5156 self .fields ["activity" ].queryset = []
5257 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+ )
5664
5765 if "instance" in kwargs : # Don't allow changing the activity once the announcement has been created
5866 self .fields ["activity" ].widget .attrs ["disabled" ] = True
@@ -92,7 +100,12 @@ def __init__(self, *args, **kwargs):
92100 super ().__init__ (* args , ** kwargs )
93101 self .fields ["expiration_date" ].help_text = "By default, announcements expire after two weeks. Choose the shortest time necessary."
94102
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+ )
96109
97110 self .fields ["notify_email_all_resend" ].help_text = (
98111 "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):
153166
154167 def __init__ (self , * args , ** kwargs ):
155168 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+ )
157175 self .fields ["notify_email_all" ].help_text = (
158176 "This will send an email notification to all of the users who can see this post. This option "
159177 "does NOT take users' email notification preferences into account, so please use with care."
0 commit comments