comparison 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
comparison
equal deleted inserted replaced
1197:ba23e79438f4 1198:3a03c2b2df05
176 176
177 def _user_photo_url(filename): 177 def _user_photo_url(filename):
178 url_pattern = '%s://%s%s%s/%s' 178 url_pattern = '%s://%s%s%s/%s'
179 site = Site.objects.get_current() 179 site = Site.objects.get_current()
180 180
181 image_url = url_pattern % ( 181 return url_pattern % (
182 settings.SITE_SCHEME, 182 settings.SITE_SCHEME,
183 site.domain, 183 site.domain,
184 settings.MEDIA_URL, 184 settings.MEDIA_URL,
185 settings.USER_PHOTOS_LOCAL_UPLOAD_DIR, 185 settings.USER_PHOTOS_LOCAL_UPLOAD_DIR,
186 filename) 186 filename)