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/")