8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Affichage de la réference commerciale par default

This commit is contained in:
detraz 2018-10-15 00:49:03 +02:00 committed by chirac
parent abde5cb41c
commit 843a71be9b

View file

@ -411,6 +411,9 @@ class ModelSwitch(AclMixin, RevMixin, models.Model):
verbose_name_plural = _("switch models")
def __str__(self):
if self.commercial_name:
return str(self.constructor) + ' ' + str(self.commercial_name)
else:
return str(self.constructor) + ' ' + self.reference