Kaydet (Commit) f59a0401 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed #25567 -- Removed obsolete MEDIA_URL fallback in Media.absolute_path

üst 6ff50012
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment