Browse Source

Affichage de la réference commerciale par default

docker_basic_support
detraz 7 years ago
committed by chirac
parent
commit
843a71be9b
  1. 5
      topologie/models.py

5
topologie/models.py

@ -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…
Cancel
Save