Put os.path.basename() back

Without this the subdirectory from `media_format` is doubled.
This commit is contained in:
tcely 2025-01-26 07:11:30 -05:00 committed by GitHub
parent fe4f6dd6b8
commit 7b1aedf7ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1308,7 +1308,7 @@ class Media(models.Model):
filename = str(mf_path.relative_to(self.source.directory_path))
else:
filename = self.filename
prefix, ext = os.path.splitext(filename)
prefix, ext = os.path.splitext(os.path.basename(filename))
return prefix
@property