X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5b5cf22bf0a6acd75c09f34dbafaea00b3876444..06a4fa420a6b220d7f6feac773bb9e6302b9b3dc:/src/messaging/states.py 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, ]