correct the string property for the warranty model

This commit is contained in:
Andreas Zweili 2020-02-16 13:00:25 +01:00
parent b6034bdc57
commit b781192138
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Warranty(models.Model):
blank=True, null=True)
def __str__(self):
return self.device
return str(self.device)
class Meta:
verbose_name_plural = "Warranties"