mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Affichage de la réference commerciale par default
This commit is contained in:
parent
abde5cb41c
commit
843a71be9b
1 changed files with 4 additions and 1 deletions
|
@ -411,7 +411,10 @@ class ModelSwitch(AclMixin, RevMixin, models.Model):
|
||||||
verbose_name_plural = _("switch models")
|
verbose_name_plural = _("switch models")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.constructor) + ' ' + self.reference
|
if self.commercial_name:
|
||||||
|
return str(self.constructor) + ' ' + str(self.commercial_name)
|
||||||
|
else:
|
||||||
|
return str(self.constructor) + ' ' + self.reference
|
||||||
|
|
||||||
|
|
||||||
class ConstructorSwitch(AclMixin, RevMixin, models.Model):
|
class ConstructorSwitch(AclMixin, RevMixin, models.Model):
|
||||||
|
|
Loading…
Reference in a new issue