More test munging

This commit is contained in:
2021-02-05 01:02:01 +00:00
parent c090163f40
commit 1d63bd940d
8 changed files with 52 additions and 47 deletions

View File

@@ -148,7 +148,7 @@ class Asset(models.Model, RevisionMixin):
return reverse('asset_detail', kwargs={'pk': self.asset_id})
def __str__(self):
out = str(self.asset_id) + ' - ' + self.description
out = "{} | {}".format(self.asset_id, self.description)
if self.is_cable and self.cable_type is not None:
out += '{} - {}m - {}'.format(self.cable_type.plug, self.length, self.cable_type.socket)
return out