Commit 249c7442 authored by John Red Medrano's avatar John Red Medrano

Merge pull request #712 in RMS/api-main-service from red-develop to product-dev

* commit '91fc71ca':
  fixing serving profile picture on account
parents e7e156c3 91fc71ca
...@@ -108,7 +108,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer): ...@@ -108,7 +108,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
ssl = config['SETTINGS']['SSL'] ssl = config['SETTINGS']['SSL']
if primayPic: if primayPic:
path = request.build_absolute_uri(primayPic.image.url) path = request.build_absolute_uri(primayPic.image.url)
if ssl == 1: if ssl == "1" or ssl == 1:
path = path.replace('http', 'https') path = path.replace('http', 'https')
else: else:
path = path.replace('https', 'http') path = path.replace('https', 'http')
......
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