mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
test: Product and ProductType icon resizing
This commit is contained in:
@ -46,7 +46,7 @@ class ResizedImageFieldFile(ImageFieldFile):
|
||||
extension = formats[new_format]
|
||||
else:
|
||||
raise ValueError(f"Unknown format {new_format}")
|
||||
return str(Path(self.file.name).with_suffix(f".{extension}"))
|
||||
return str(Path(self.file.name).with_suffix(extension))
|
||||
|
||||
def save(self, name, content, save=True): # noqa FBT002
|
||||
content.file.seek(0)
|
||||
|
Reference in New Issue
Block a user