Payment step

This commit is contained in:
Raphael Michel
2019-09-18 19:17:31 +02:00
parent 85e7a16880
commit db71ec92be
4 changed files with 62 additions and 10 deletions

View File

@@ -82,6 +82,14 @@ class Organizer(LoggedModel):
return ObjectRelatedCache(self)
@property
def has_gift_cards(self):
return self.cache.get_or_set(
key='has_gift_cards',
timeout=15,
default=lambda: self.issued_gift_cards.exists() or self.gift_card_issuer_acceptance.exists()
)
def allow_delete(self):
from . import Order, Invoice
return (