X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/06a4fa420a6b220d7f6feac773bb9e6302b9b3dc..f1143b5bcf508dcfe7f72e90faee72cf72a2392a:/src/messaging/states.py diff --git a/src/messaging/states.py b/src/messaging/states.py index 0bb63b442..36b5d05f1 100644 --- a/src/messaging/states.py +++ b/src/messaging/states.py @@ -41,10 +41,15 @@ class State: return ctx -class ClubMembershipExpiring(State): +class ClubSingle(State): + slug = 'club-single' + name = _('club one-time donors') + + +class ClubSingleExpired(State): slug = 'club-membership-expiring' allow_negative_offset = True - name = _('club membership expiring') + name = _('club one-time donors with donation expiring') def get_objects(self): from club.models import Schedule @@ -57,9 +62,9 @@ class ClubMembershipExpiring(State): return '%s:%s' % (obj.pk, obj.expires_at.isoformat()) -class ClubPaymentUnfinished(State): +class ClubTried(State): slug = 'club-payment-unfinished' - name = _('club payment unfinished') + name = _('club would-be donors') def get_objects(self): from club.models import Schedule @@ -69,18 +74,31 @@ class ClubPaymentUnfinished(State): ) -class ClubRecurringPaymentProblem(State): +class ClubRecurring(State): + slug = 'club-recurring' + name = _('club recurring donors') + + +class ClubRecurringExpired(State): slug = 'club-recurring-payment-problem' - name = _('club recurring payment problem') + name = _('club recurring donors with donation expired') def get_objects(self): from club.models import Schedule return Schedule.objects.none() +class Cold(State): + slug = 'cold' + name = _('cold group') + + states = [ - ClubMembershipExpiring, - ClubPaymentUnfinished, - ClubRecurringPaymentProblem, + Cold, + ClubTried, + ClubSingle, + ClubSingleExpired, + ClubRecurring, + ClubRecurringExpired, ]