correct the string property for the warranty model
This commit is contained in:
parent
b6034bdc57
commit
b781192138
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue