1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 23:39:37 +02:00

Merge pull request #163 from seanmorley15/development

feat: Fix flag URL in CountrySerializer
This commit is contained in:
Sean Morley 2024-08-05 14:30:15 -04:00 committed by GitHub
commit 62f33c7b0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ from rest_framework import serializers
class CountrySerializer(serializers.ModelSerializer):
def get_public_url(self, obj):
return os.environ.get('PUBLIC_URL', 'http://127.0.0.1:8000').rstrip('/')
return os.environ.get('PUBLIC_URL', 'http://127.0.0.1:8000').rstrip('/').replace("'", "")
flag_url = serializers.SerializerMethodField()