8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Fix name format for tickets

This commit is contained in:
Gabriel Detraz 2020-05-03 02:12:04 +02:00
parent 8e4cb69025
commit 52cfdc7105
2 changed files with 4 additions and 5 deletions

View file

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-24 18:45+0200\n"
"POT-Creation-Date: 2020-05-03 02:10+0200\n"
"PO-Revision-Date: 2019-11-16 00:35+0100\n"
"Last-Translator: Laouen Fernet <laouen.fernet@supelec.fr>\n"
"Language-Team: \n"
@ -59,9 +59,8 @@ msgid "tickets"
msgstr "tickets"
#: tickets/models.py:82
#, python-format
msgid "Ticket from %(name)s. Date: %(date)s."
msgstr "Ticket de %(name)s. Date : %(date)s."
msgid "Ticket from {name}. Date: {date}."
msgstr "Ticket de {name}. Date : {date}."
#: tickets/models.py:84
#, python-format

View file

@ -79,7 +79,7 @@ class Ticket(AclMixin, models.Model):
def __str__(self):
if self.user:
return _("Ticket from %(name)s. Date: %(date)s.").format(name=self.user.surname, date=self.date)
return _("Ticket from {name}. Date: {date}.").format(name=self.user.get_full_name(),date=self.date)
else:
return _("Anonymous ticket. Date: %s.") % (self.date)