Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2021
1 parent 8d9caac commit 6e63114
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions payments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ 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,
blank=True,
)

class TimeUnit(enum.Enum):
year = 'year'
month = 'month'
day = 'day'
year = "year"
month = "month"
day = "day"

def get_token(self) -> str:
return self.token
Expand Down

0 comments on commit 6e63114

Please sign in to comment.