mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Timeline: Do not show disabled payment providers
This commit is contained in:
@@ -173,6 +173,8 @@ def timeline_for_event(event, subevent=None):
|
|||||||
# This is a special case, depending on payment providers not overriding BasePaymentProvider by too much, but it's
|
# This is a special case, depending on payment providers not overriding BasePaymentProvider by too much, but it's
|
||||||
# preferrable to having all plugins implement this spearately.
|
# preferrable to having all plugins implement this spearately.
|
||||||
for pprov in pprovs.values():
|
for pprov in pprovs.values():
|
||||||
|
if not pprov.settings.get('_enabled', as_type=bool):
|
||||||
|
continue
|
||||||
availability_date = pprov.settings.get('_availability_date', as_type=RelativeDateWrapper)
|
availability_date = pprov.settings.get('_availability_date', as_type=RelativeDateWrapper)
|
||||||
if availability_date:
|
if availability_date:
|
||||||
d = make_aware(datetime.combine(
|
d = make_aware(datetime.combine(
|
||||||
|
|||||||
Reference in New Issue
Block a user