mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-26 13:04:00 +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)
|
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'
|
ASSIGNMENT_DELIMETER = 'as'
|
||||||
HTML_ATTRS_DELIMITER = '--'
|
HTML_ATTRS_DELIMITER = '--'
|
||||||
DEFAULT_THUMBNAIL_GENERATOR = 'ik:thumbnail'
|
DEFAULT_THUMBNAIL_GENERATOR = 'imagekit:thumbnail'
|
||||||
|
|
||||||
|
|
||||||
def get_generatedfile(context, generator_id, generator_kwargs, source=None):
|
def get_generatedfile(context, generator_id, generator_kwargs, source=None):
|
||||||
|
|
@ -242,7 +242,7 @@ def thumbnail(parser, token):
|
||||||
|
|
||||||
is equivalent to::
|
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
|
The thumbnail tag supports the "--" and "as" bits for adding html
|
||||||
attributes and assigning to a variable, respectively. It also accepts the
|
attributes and assigning to a variable, respectively. It also accepts the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue