mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
core/models: change thumbnails
and compressed
SithFile directories
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
parent
0d3c34c155
commit
c7b918115d
@ -635,11 +635,11 @@ def get_directory(instance, filename):
|
||||
|
||||
|
||||
def get_compressed_directory(instance, filename):
|
||||
return '.{0}/compressed/{1}'.format(instance.get_parent_path(), filename)
|
||||
return './.compressed/{0}/{1}'.format(instance.get_parent_path(), filename)
|
||||
|
||||
|
||||
def get_thumbnail_directory(instance, filename):
|
||||
return '.{0}/thumbnail/{1}'.format(instance.get_parent_path(), filename)
|
||||
return './.thumbnails/{0}/{1}'.format(instance.get_parent_path(), filename)
|
||||
|
||||
|
||||
class SithFile(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user