Browse files

client и backend в подели

  • Loading branch information...
1 parent ee60d44 commit 7c33d5cd5bd5df55839bfca9fcd28f208693eefd @nskeip nskeip committed Aug 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 cashflow/models.py
View
4 cashflow/models.py
@@ -51,10 +51,10 @@ class Payment(models.Model):
(STATUS_FAILED_PROVIDER, 'PROVIDER FAILURE'),
)
- # TODO: client
+ client = models.ForeignKey(Client)
amount = models.DecimalField(max_digits=10, decimal_places=2)
currency = models.ForeignKey(Currency)
- # TODO: backend (не должен меняться, если что-то поменяется в валюте)
+ backend = models.ForeignKey(PaymentBackend)
created = models.DateTimeField(auto_now_add=True)
comment = models.TextField(blank=True)
success_url = models.URLField(blank=True)

0 comments on commit 7c33d5c

Please sign in to comment.