Simplified path join for the cache

This commit is contained in:
German M. Bravo 2012-05-04 17:24:04 -05:00 committed by Matthew Tretter
parent 322c96eec2
commit 784afcc95d

View file

@ -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):