From f94b7276b3a8464e82929c8cdcf048f77cefe9dc Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Fri, 1 Feb 2013 01:21:01 -0500 Subject: [PATCH] Use "imagekit" instead of "ik" for built-in generator prefix --- imagekit/generatorlibrary.py | 2 +- imagekit/templatetags/imagekit.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imagekit/generatorlibrary.py b/imagekit/generatorlibrary.py index 977e960..bc5a0f8 100644 --- a/imagekit/generatorlibrary.py +++ b/imagekit/generatorlibrary.py @@ -10,4 +10,4 @@ class Thumbnail(ImageSpec): super(Thumbnail, self).__init__(**kwargs) -register.generator('ik:thumbnail', Thumbnail) +register.generator('imagekit:thumbnail', Thumbnail) diff --git a/imagekit/templatetags/imagekit.py b/imagekit/templatetags/imagekit.py index 956f592..fbad511 100644 --- a/imagekit/templatetags/imagekit.py +++ b/imagekit/templatetags/imagekit.py @@ -11,7 +11,7 @@ register = template.Library() ASSIGNMENT_DELIMETER = 'as' HTML_ATTRS_DELIMITER = '--' -DEFAULT_THUMBNAIL_GENERATOR = 'ik:thumbnail' +DEFAULT_THUMBNAIL_GENERATOR = 'imagekit:thumbnail' def get_generatedfile(context, generator_id, generator_kwargs, source=None): @@ -242,7 +242,7 @@ def thumbnail(parser, token): is equivalent to:: - {% generateimage 'ik:thumbnail' source=mymodel.profile_image width=100 height=100 %} + {% generateimage 'imagekit:thumbnail' source=mymodel.profile_image width=100 height=100 %} The thumbnail tag supports the "--" and "as" bits for adding html attributes and assigning to a variable, respectively. It also accepts the