Skip to content

Commit

Permalink
f string instead of format
Browse files Browse the repository at this point in the history
  • Loading branch information
cyface committed Mar 11, 2024
1 parent 6c1d71b commit 46aa085
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions termsandconditions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ class Meta:
"terms",
)

def __str__(self): # pragma: nocover
return "{}:{}-{:.2f}".format(
self.user.get_username(), self.terms.slug, self.terms.version_number
)
def __str__(self):
return f"{self.user.get_username()}:{self.terms.slug}-{self.terms.version_number}")


class TermsAndConditions(models.Model):
Expand Down

0 comments on commit 46aa085

Please sign in to comment.