Commit 00e6788d authored by John Red Medrano's avatar John Red Medrano

Merge pull request #604 in RMS/api-main-service from staging to demo

* commit 'fc7b9b50':
  debuging on user_image
parents 1bd0f05d fc7b9b50
......@@ -80,6 +80,8 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
primayPic = user.user_images.filter(is_primary=True).first()
if primayPic:
print(request.build_absolute_uri(primayPic.image.url))
print(request)
return request.build_absolute_uri(primayPic.image.url)
else:
return request.build_absolute_uri('/media/no-user.png')
......
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