Esempio n. 1
0
 def unsubscribe_from_basket(modeladmin, request, queryset):
     """Unsubscribe from Basket."""
     ts = [
         unsubscribe_from_basket_task.s(userprofile.email, [newsletter])
         for userprofile in queryset
     ]
     group(ts)()
     messages.success(request, 'Basket update started.')
Esempio n. 2
0
 def unsubscribe_from_basket(modeladmin, request, queryset):
     """Unsubscribe from Basket."""
     ts = [unsubscribe_from_basket_task.s(userprofile.email, [newsletter])
           for userprofile in queryset]
     group(ts)()
     messages.success(request, 'Basket update started.')