From 9b2679cf1c4792f321d178b1fed62dd12e684c29 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 30 Sep 2024 12:47:37 -0400 Subject: [PATCH] temp: cleanup old url-fetcihng code, which we don't actually use yet --- openedx_learning/apps/authoring/contents/models.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)