File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424logger = logging .getLogger (__name__ )
2525
26- _CONFIRM_SALT = "mailing-list-confirm"
26+ _CONFIRM_SALT = "mailing-list-confirm-a40b24dc-a26d-49ca-81d1-5b2fccb5fd7b "
2727_CONFIRM_MAX_AGE = 7 * 24 * 60 * 60 # 7 days in seconds
2828
2929
@@ -68,6 +68,12 @@ def _send_confirmation_email(
6868 )
6969
7070
71+ """
72+ This view is currently only being used in the demo page. This will later have to be adapted to be reused
73+ in the multi-selection modals.
74+ """
75+
76+
7177class SubscribeView (LoginRequiredMixin , View ):
7278 def post (self , request ):
7379 email = request .POST .get ("email" , "" ).strip ()
@@ -147,6 +153,13 @@ def post(self, request):
147153 )
148154
149155
156+ """
157+ This will be partially deprecated once multi-selection modals are implemented.
158+ Although multi-selection modals will take care of the sub/unsub logic, this view still shows how you'd
159+ want to set the _mailing_list_card.html state to show the 'pending' or 'subscribed' status.
160+ """
161+
162+
150163class QuickSubscribeView (View ):
151164 """Subscribe to a single list. Works for both authenticated and anonymous users.
152165
You can’t perform that action at this time.
0 commit comments