Fix shortpixel call
This commit is contained in:
parent
535d869ddc
commit
5055603927
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class Attachment(models.Model):
|
||||||
"resize_height": settings.SHORTPIXEL_RESIZE_HEIGHT,
|
"resize_height": settings.SHORTPIXEL_RESIZE_HEIGHT,
|
||||||
"keep_exif": 1,
|
"keep_exif": 1,
|
||||||
"file_paths": json.dumps(
|
"file_paths": json.dumps(
|
||||||
[f"{self.original_file.name}:{self.original_file.path}"],
|
{self.original_file.name: self.original_file.path},
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
data = {**base_data, **post_data}
|
data = {**base_data, **post_data}
|
||||||
|
|
Reference in a new issue