fixing payment booking bug

This commit is contained in:
Levi 2016-12-06 21:47:59 -05:00
commit 61d15b1250
5 changed files with 11 additions and 3 deletions

View file

@ -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