fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix
[wolnelektury.git]
/
src
/
messaging
/
states.py
diff --git
a/src/messaging/states.py
b/src/messaging/states.py
index
0bb63b4
..
36b5d05
100644
(file)
--- a/
src/messaging/states.py
+++ b/
src/messaging/states.py
@@
-41,10
+41,15
@@
class State:
return ctx
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
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
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())
return '%s:%s' % (obj.pk, obj.expires_at.isoformat())
-class Club
PaymentUnfinish
ed(State):
+class Club
Tri
ed(State):
slug = 'club-payment-unfinished'
slug = 'club-payment-unfinished'
- name = _('club
payment unfinished
')
+ name = _('club
would-be donors
')
def get_objects(self):
from club.models import Schedule
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'
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()
def get_objects(self):
from club.models import Schedule
return Schedule.objects.none()
+class Cold(State):
+ slug = 'cold'
+ name = _('cold group')
+
+
states = [
states = [
- ClubMembershipExpiring,
- ClubPaymentUnfinished,
- ClubRecurringPaymentProblem,
+ Cold,
+ ClubTried,
+ ClubSingle,
+ ClubSingleExpired,
+ ClubRecurring,
+ ClubRecurringExpired,
]
]