mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Deal with cancelling memberships (#2130)
This commit is contained in:
@@ -141,6 +141,11 @@ def validate_memberships_in_order(customer: Customer, positions: List[AbstractPo
|
||||
_('You selected a membership that is connected to a different customer account.')
|
||||
)
|
||||
|
||||
if m.canceled:
|
||||
raise ValidationError(
|
||||
_('You selected membership that has been canceled.')
|
||||
)
|
||||
|
||||
if m.testmode != testmode:
|
||||
raise ValidationError(
|
||||
_('You can only use a test mode membership for test mode tickets.')
|
||||
|
||||
Reference in New Issue
Block a user