X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0a7090f11131631647db366ff87976407e788412..e62a2d9038d696e88b58e624f87026af7073088e:/src/club/templatetags/club.py diff --git a/src/club/templatetags/club.py b/src/club/templatetags/club.py index be7dda9f2..92fb5ca0b 100644 --- a/src/club/templatetags/club.py +++ b/src/club/templatetags/club.py @@ -80,6 +80,6 @@ def club_monthly_missing_since(start, target): monthly=True, payed_at__gte=start).count() -@register.simple_tag -def invite_payment(payment_method, schedule): - return payment_method.invite_widget(schedule) +@register.simple_tag(takes_context=True) +def invite_payment(context, payment_method, schedule): + return payment_method.invite_widget(schedule, context['request'])