# HG changeset patch # User durandn # Date 1474291638 -7200 # Node ID bf7411b26031cf2c01320464691657add4ce439d # Parent f4d3b15ec163938f9eb06967468812c7bb63fb20 fixed error with __str__ method for ImageStats object diff -r f4d3b15ec163 -r bf7411b26031 src/iconolab/models.py --- a/src/iconolab/models.py Mon Sep 19 15:13:16 2016 +0200 +++ b/src/iconolab/models.py Mon Sep 19 15:27:18 2016 +0200 @@ -84,7 +84,7 @@ tag_count = models.IntegerField(blank=True, null=True, default=0) def __str__(self): - return "stats:for:"+self.image.image_guid + return "stats:for:"+str(self.image.image_guid) def set_tags_stats(self): self.tag_count = Tag.objects.filter(tagginginfo__revision__annotation__image = self.image).distinct().count()