Display payment details

This commit is contained in:
Raphael Michel
2015-03-12 22:54:59 +01:00
parent 3e392f7ed4
commit 8c802e534e
11 changed files with 306 additions and 51 deletions

View File

@@ -714,7 +714,7 @@ class Item(Versionable):
if self.event:
self.event.get_cache().clear()
def delete(self):
def delete(self, *args, **kwargs):
self.deleted = True
self.active = False
super().save()
@@ -1229,11 +1229,13 @@ class Order(Versionable):
STATUS_PAID = "p"
STATUS_EXPIRED = "e"
STATUS_CANCELLED = "c"
STATUS_REFUNDED = "r"
STATUS_CHOICE = (
(STATUS_PAID, _("pending")),
(STATUS_PENDING, _("paid")),
(STATUS_EXPIRED, _("expired")),
(STATUS_CANCELLED, _("cancelled")),
(STATUS_REFUNDED, _("refunded"))
)
code = models.CharField(