def post(request, cs_session):
     # handle new signup
     member = new_signup(cs_session.pop())
     # finish registration
     if member.subscription_future is None:
         return redirect('welcome')
     return redirect('welcome-with-sub')
Exemplo n.º 2
0
 def post(self, request, *args, **kwargs):
     # handle new signup
     registration_session = self.cs_session.pop()
     member = new_signup(registration_session)
     # associate custom products with subscription
     if member.subscription_future is not None:
         add_products_to_subscription(member.subscription_future.id,
                                      registration_session.custom_prod,
                                      SubscriptionContentItem)
         add_products_to_subscription(member.subscription_future.id,
                                      registration_session.custom_prod,
                                      SubscriptionContentFutureItem)
     # finish registration
     if member.subscription_future is None:
         return redirect('welcome')
     return redirect('welcome-with-sub')
Exemplo n.º 3
0
 def post(request, cs_session):
     # handle new signup
     new_signup(cs_session)
     # finish registration
     return cs_finish(request)