Ignore event end date for subevents

This commit is contained in:
Raphael Michel
2018-02-07 13:51:22 +01:00
parent c53fd25d1c
commit ded539ce7a
5 changed files with 39 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ class CartManager:
if op.subevent and op.subevent.presale_start and self.now_dt < op.subevent.presale_start:
raise CartError(error_messages['not_started'])
if op.subevent and op.subevent.presale_end and self.now_dt > op.subevent.presale_end:
if op.subevent and op.subevent.presale_has_ended:
raise CartError(error_messages['ended'])
if isinstance(op, self.AddOperation):