Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class EmailLogin(LoadCartMixin, APIView):
- def post(self, request, format=None):
- session_cart = self.request.session.get('cart')
- def test_void(self):
- cart = {
- u'meals': {self.meal.id: [{u'options': [self.meal_option.id], u'submeals': {}, u'quantity': 1}]}
- }
- session = self.client.session
- session['cart'] = cart
- session.save()
- response = self.client.post(
- reverse('accounts:email-login-url'),
- data={'email': self.restaurant_admin_email, 'password': self.restaurant_admin_password}
- )
Add Comment
Please, Sign In to add comment