X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a7e41fefbf46ad5bfa2eb97dbd1cc11d3a28a354..56c5bac0c6b5fc622a0b274861a98b9dca00259e:/src/messaging/states.py?ds=inline diff --git a/src/messaging/states.py b/src/messaging/states.py index 317be2170..0bb63b442 100644 --- a/src/messaging/states.py +++ b/src/messaging/states.py @@ -56,6 +56,7 @@ class ClubMembershipExpiring(State): def get_hashed_value(self, obj): return '%s:%s' % (obj.pk, obj.expires_at.isoformat()) + class ClubPaymentUnfinished(State): slug = 'club-payment-unfinished' name = _('club payment unfinished') @@ -68,8 +69,18 @@ class ClubPaymentUnfinished(State): ) +class ClubRecurringPaymentProblem(State): + slug = 'club-recurring-payment-problem' + name = _('club recurring payment problem') + + def get_objects(self): + from club.models import Schedule + return Schedule.objects.none() + + states = [ ClubMembershipExpiring, ClubPaymentUnfinished, + ClubRecurringPaymentProblem, ]