Commits

funkybob  committed 89a70d0

all payments are bound to an order

  • Participants
  • Parent commits 8ff0395

Comments (0)

Files changed (1)

File gnocchi/payment/models.py

         ('Declined', 'Declined'),
         ('Cancelled', 'Cancelled'),
     )
+    order = models.ForeignKey('orders.Order')
     type = models.CharField(max_length=16, choices=PAYMENT_TYPE)
     created = models.DateTimeField(default=datetime.now)
     amount = models.DecimalField(decimal_places=2, max_digits=12)