Fix model __str__ method
This commit is contained in:
parent
8e9770a26b
commit
99e84f04ad
1 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,9 @@ class CASAccount(models.Model):
|
|||
verbose_name_plural = _("Comptes CAS")
|
||||
|
||||
def __str__(self):
|
||||
return _("compte CAS %(cas_login) (promo %(entrance_year)s) lié à %(user)s") % {
|
||||
return _(
|
||||
"compte CAS %(cas_login)s (promo %(entrance_year)s) lié à %(user)s"
|
||||
) % {
|
||||
"cas_login": self.cas_login,
|
||||
"entrance_year": self.entrance_year,
|
||||
"user": self.user.username,
|
||||
|
@ -74,7 +76,7 @@ class OldCASAccount(models.Model):
|
|||
|
||||
def __str__(self):
|
||||
return _(
|
||||
"Ancien compte CAS %(cas_login) (promo %(entrance_year)s) lié à %(user)s"
|
||||
"Ancien compte CAS %(cas_login)s (promo %(entrance_year)s) lié à %(user)s"
|
||||
) % {
|
||||
"cas_login": self.cas_login,
|
||||
"entrance_year": self.entrance_year,
|
||||
|
|
Loading…
Reference in a new issue