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:
commit
62f33c7b0a
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