From 61d15b125047c46fdadc8d579cdb5435f4b404ef Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 6 Dec 2016 21:47:59 -0500 Subject: [PATCH] fixing payment booking bug --- digitalglarus/mixins.py | 1 + digitalglarus/templates/digitalglarus/booking.html | 8 ++++++-- .../templates/digitalglarus/booking_orders_detail.html | 2 ++ .../templates/digitalglarus/booking_payment.html | 2 +- digitalglarus/views.py | 1 + 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/digitalglarus/mixins.py b/digitalglarus/mixins.py index 7c214e14..d4962129 100644 --- a/digitalglarus/mixins.py +++ b/digitalglarus/mixins.py @@ -48,6 +48,7 @@ class Ordereable(models.Model): @classmethod def create(cls, data): stripe_charge = data.pop('stripe_charge', None) + del(data['status']) instance = cls.objects.create(**data) if not stripe_charge: return instance diff --git a/digitalglarus/templates/digitalglarus/booking.html b/digitalglarus/templates/digitalglarus/booking.html index 85b15fd2..f8b2bc6a 100644 --- a/digitalglarus/templates/digitalglarus/booking.html +++ b/digitalglarus/templates/digitalglarus/booking.html @@ -11,8 +11,12 @@

Booking

- +