mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Fixes error message
Arguments were in the wrong order. Also, shows class name in string representation of instance isn't helpful.
This commit is contained in:
parent
2cb8d5d407
commit
bbc0bffd88
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ class AdminThumbnail(object):
|
|||
thumbnail = getattr(obj, self.image_field, None)
|
||||
|
||||
if not thumbnail:
|
||||
raise Exception('The property {0} is not defined on {1}.'.format(
|
||||
obj, self.image_field))
|
||||
raise Exception('The property %s is not defined on %s.' % \
|
||||
(self.image_field, obj.__class__.__name__))
|
||||
|
||||
original_image = getattr(thumbnail, 'source_file', None) or thumbnail
|
||||
template = self.template or 'imagekit/admin/thumbnail.html'
|
||||
|
|
|
|||
Loading…
Reference in a new issue