mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
Use "imagekit" instead of "ik" for built-in generator prefix
This commit is contained in:
parent
50d83745bc
commit
f94b7276b3
2 changed files with 3 additions and 3 deletions
|
|
@ -10,4 +10,4 @@ class Thumbnail(ImageSpec):
|
|||
super(Thumbnail, self).__init__(**kwargs)
|
||||
|
||||
|
||||
register.generator('ik:thumbnail', Thumbnail)
|
||||
register.generator('imagekit:thumbnail', Thumbnail)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue