X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c2212f96c81ec3440c8ad8c9290786cf30327e4..2f331ef41f1d5db23305ec79a02dfbff342ce893:/src/club/templatetags/club.py diff --git a/src/club/templatetags/club.py b/src/club/templatetags/club.py index d69129720..be7dda9f2 100644 --- a/src/club/templatetags/club.py +++ b/src/club/templatetags/club.py @@ -78,3 +78,8 @@ def club_monthly_since(start): def club_monthly_missing_since(start, target): return target - Schedule.objects.filter( monthly=True, payed_at__gte=start).count() + + +@register.simple_tag +def invite_payment(payment_method, schedule): + return payment_method.invite_widget(schedule)