Payment term in minutes (#1760)

Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Felix Rindt
2020-09-14 13:44:28 +02:00
committed by GitHub
parent 2f21dc8c3c
commit 8f2c125435
12 changed files with 155 additions and 30 deletions

View File

@@ -0,0 +1,10 @@
from django import template
from pretix.base.i18n import LazyExpiresDate
register = template.Library()
@register.filter
def format_expires(order):
return LazyExpiresDate(order.expires.astimezone(order.event.timezone))