Mercurial > public > sg101
diff core/images/upload.py @ 1198:3a03c2b2df05
Fix url return value bug.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 07 May 2023 19:27:19 -0500 |
parents | ba23e79438f4 |
children |
line wrap: on
line diff
--- a/core/images/upload.py Sun May 07 19:23:35 2023 -0500 +++ b/core/images/upload.py Sun May 07 19:27:19 2023 -0500 @@ -178,7 +178,7 @@ url_pattern = '%s://%s%s%s/%s' site = Site.objects.get_current() - image_url = url_pattern % ( + return url_pattern % ( settings.SITE_SCHEME, site.domain, settings.MEDIA_URL,