models: Add status text for some plan status states.

This commit is contained in:
Aman Agrawal 2023-11-25 10:38:10 +00:00 committed by Tim Abbott
parent 30891bfc54
commit d43a60eb9d
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ class CustomerPlan(models.Model):
self.ACTIVE: "Active",
self.DOWNGRADE_AT_END_OF_CYCLE: "Scheduled for downgrade at end of cycle",
self.FREE_TRIAL: "Free trial",
self.SWITCH_TO_ANNUAL_AT_END_OF_CYCLE: "Scheduled for switch to annual at end of cycle",
self.SWITCH_TO_MONTHLY_AT_END_OF_CYCLE: "Scheduled for switch to monthly at end of cycle",
self.ENDED: "Ended",
self.NEVER_STARTED: "Never started",
}[self.status]