From f431b1bd0f55d68d116e5c9a578f4df900bc5034 Mon Sep 17 00:00:00 2001 From: Swapnal Shahil <58564017+swapnalshahil@users.noreply.github.com> Date: Thu, 6 Oct 2022 00:33:22 +0530 Subject: [PATCH] Update of the old CC BASE_URL of media reports (#966) Co-authored-by: Krystle Salazar --- api/catalog/api/models/media.py | 2 +- api/catalog/settings.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/catalog/api/models/media.py b/api/catalog/api/models/media.py index 2b7cc9788..2ed74f058 100644 --- a/api/catalog/api/models/media.py +++ b/api/catalog/api/models/media.py @@ -142,7 +142,7 @@ class AbstractMediaReport(models.Model): deleted_class: type[models.Model] = None """the class storing deleted media e.g. ``DeletedImage`` or ``DeletedAudio``""" - BASE_URL = "https://search.creativecommons.org/" + BASE_URL = settings.BASE_URL REPORT_CHOICES = [(MATURE, MATURE), (DMCA, DMCA), (OTHER, OTHER)] diff --git a/api/catalog/settings.py b/api/catalog/settings.py index 472e3d539..a97fcee1d 100644 --- a/api/catalog/settings.py +++ b/api/catalog/settings.py @@ -376,3 +376,5 @@ MAX_ANONYMOUS_PAGE_SIZE = 20 MAX_AUTHED_PAGE_SIZE = 500 MAX_PAGINATION_DEPTH = 20 + +BASE_URL = config("BASE_URL", default="https://wordpress.org/openverse/")