diff --git a/combo/apps/gallery/models.py b/combo/apps/gallery/models.py index ac41a231..9d4a8d3b 100644 --- a/combo/apps/gallery/models.py +++ b/combo/apps/gallery/models.py @@ -34,6 +34,12 @@ class GalleryCell(CellBase): gallery_template = template.loader.get_template('combo/gallery.html') return gallery_template.render(context) + def get_additional_label(self): + if self.title: + return self.title + return '' + + class Image(models.Model): gallery = models.ForeignKey(GalleryCell, verbose_name=_('Gallery')) image = models.ImageField(_('Image'),