Commit 91fc71ca authored by John Red Medrano's avatar John Red Medrano

fixing serving profile picture on account

parent e7e156c3
...@@ -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