forked from CGM_Public/pretix_original
Payment term in minutes (#1760)
Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
10
src/pretix/helpers/templatetags/expiresformat.py
Normal file
10
src/pretix/helpers/templatetags/expiresformat.py
Normal 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))
|
||||
Reference in New Issue
Block a user