fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Search
[wolnelektury.git]
/
src
/
club
/
templatetags
/
club.py
diff --git
a/src/club/templatetags/club.py
b/src/club/templatetags/club.py
index
d691297
..
92fb5ca
100644
(file)
--- 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()
def club_monthly_missing_since(start, target):
return target - Schedule.objects.filter(
monthly=True, payed_at__gte=start).count()
+
+
+@register.simple_tag(takes_context=True)
+def invite_payment(context, payment_method, schedule):
+ return payment_method.invite_widget(schedule, context['request'])