From 6e6311421e0b76cd1d33314ad6b471092bbcbc84 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 23 Oct 2021 04:24:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- payments/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/payments/models.py b/payments/models.py index ef6d606b6..d559448b8 100644 --- a/payments/models.py +++ b/payments/models.py @@ -40,8 +40,8 @@ def __setattr__(self, key, value): class BaseSubscription(models.Model): token = models.CharField( - _('subscribtion token/id'), - help_text=_('Token/id used to identify subscription by provider'), + _("subscribtion token/id"), + help_text=_("Token/id used to identify subscription by provider"), max_length=255, default=None, null=True, @@ -49,9 +49,9 @@ class BaseSubscription(models.Model): ) class TimeUnit(enum.Enum): - year = 'year' - month = 'month' - day = 'day' + year = "year" + month = "month" + day = "day" def get_token(self) -> str: return self.token