Simplify directory_path for Media

This commit is contained in:
tcely 2025-01-11 15:38:45 -05:00 committed by GitHub
parent b829b233f8
commit f464acaa63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1263,8 +1263,7 @@ class Media(models.Model):
@property
def directory_path(self):
dirname = self.source.directory_path / self.filename
return dirname.parent
return self.filepath.parent
@property
def filepath(self):