from datetime import timedelta
from django.apps import apps
from django.utils.timezone import now
-from django.utils.translation import gettext_lazy as _
class Level:
class ClubSingle(State):
slug = 'club-single'
- name = _('club one-time donors')
+ name = 'darczyńcy z jednorazową wpłatą'
level = Level.SINGLE
expired = False
class ClubSingleExpired(State):
slug = 'club-membership-expiring'
allow_negative_offset = True
- name = _('club one-time donors with donation expiring')
+ name = 'darczyńcy z wygasającą jednorazową wpłatą'
level = Level.SINGLE
expired = True
class ClubTried(State):
slug = 'club-payment-unfinished'
- name = _('club would-be donors')
+ name = 'niedoszli darczyńcy'
level = Level.TRIED
def get_schedule(self, schedules):
class ClubRecurring(State):
slug = 'club-recurring'
- name = _('club recurring donors')
+ name = 'darczyńcy z wpłatą cykliczną'
level = Level.RECURRING
expired = False
class ClubRecurringExpired(State):
slug = 'club-recurring-payment-problem'
- name = _('club recurring donors with donation expired')
+ name = 'darczyńcy z wygasającą wpłatą cykliczną'
level = Level.RECURRING
expired = True
class Cold(State):
slug = 'cold'
- name = _('cold group')
+ name = 'lodówka'
level = Level.COLD
def get_context(self, contact):