models: Store more sensible item image changelog

This commit is contained in:
Piotr Dobrowolski 2017-12-13 21:30:15 +01:00
parent c1cada3de7
commit 7cf67e4195
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ class ItemImage(models.Model):
item = models.ForeignKey(Item, related_name='images') item = models.ForeignKey(Item, related_name='images')
image = models.ImageField() image = models.ImageField()
def __str__(self):
return '{}'.format(self.image.name)
class Label(models.Model): class Label(models.Model):
id = models.CharField(max_length=64, primary_key=True) id = models.CharField(max_length=64, primary_key=True)