mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #25567 -- Removed obsolete MEDIA_URL fallback in Media.absolute_path
This commit is contained in:
@@ -81,11 +81,7 @@ class Media(object):
|
||||
if path.startswith(('http://', 'https://', '/')):
|
||||
return path
|
||||
if prefix is None:
|
||||
if settings.STATIC_URL is None:
|
||||
# backwards compatibility
|
||||
prefix = settings.MEDIA_URL
|
||||
else:
|
||||
prefix = settings.STATIC_URL
|
||||
prefix = settings.STATIC_URL
|
||||
return urljoin(prefix, path)
|
||||
|
||||
def __getitem__(self, name):
|
||||
|
||||
Reference in New Issue
Block a user