mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-08 15:31:00 +00:00
Simplified path join for the cache
This commit is contained in:
parent
322c96eec2
commit
784afcc95d
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class ImageSpecFieldFile(ImageFieldFile):
|
|||
filepath, basename = os.path.split(path)
|
||||
filename = os.path.splitext(basename)[0]
|
||||
new_name = '%s_%s%s' % (filename, specname, extension)
|
||||
return os.path.join(os.path.join('cache', filepath), new_name)
|
||||
return os.path.join('cache', filepath, new_name)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue