mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-25 07:49:37 +02:00
feat: Fix flag URL in CountrySerializer
This commit is contained in:
parent
d9e554ad42
commit
7d5324a8bc
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue