Permalink
Browse files

Fixed error in __unicode__ and added verbose_name to image field in i…

…mage plugin
  • Loading branch information...
1 parent 4552d02 commit b89fa5295ae57f223cd8ce4b707886fccfd763d2 @hedberg hedberg committed Nov 16, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cmsplugin_filer_image/models.py
@@ -16,7 +16,7 @@ class FilerImage(CMSPlugin):
(RIGHT, _("right")),
)
caption = models.CharField(_("caption"), null=True, blank=True, max_length=255)
- image = FilerImageField(null=True, blank=True, default=None)
+ image = FilerImageField(null=True, blank=True, default=None, verbose_name=_("image"))
image_url = models.URLField(_("alternative image url"), verify_exists=False, null=True, blank=True, default=None)
alt_text = models.CharField(_("alt text"), null=True, blank=True, max_length=255)
thumbnail_option = models.ForeignKey('ThumbnailOption', null=True, blank=True, verbose_name=_("thumbnail option"))
@@ -50,7 +50,7 @@ def __unicode__(self):
if self.image:
return self.image.label
else:
- return unicode( _("Image Publication %(caption)s") % self.caption)
+ return unicode( _("Image Publication %(caption)s") % {'caption': self.caption} )
return ''
@property
def alt(self):

0 comments on commit b89fa52

Please sign in to comment.