diff --git a/openedx_learning/apps/authoring/contents/models.py b/openedx_learning/apps/authoring/contents/models.py index f903861e..214c2d27 100644 --- a/openedx_learning/apps/authoring/contents/models.py +++ b/openedx_learning/apps/authoring/contents/models.py @@ -367,7 +367,7 @@ def file_url(self) -> str: """ This will sometimes be a time-limited signed URL. """ - return content_file_url(self.path()) + return get_storage().url(self.path) def clean(self): """ @@ -406,7 +406,3 @@ class Meta: ] verbose_name = "Content" verbose_name_plural = "Contents" - - -def content_file_url(file_path): - return get_storage().url(file_path)