Commit 0c816950 authored by John Red Medrano's avatar John Red Medrano

Merge pull request #601 in RMS/api-main-service from red-develop to RMSv2

* commit '533937be':
  debuging on user_image
parents b15b1d88 533937be
......@@ -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