mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 15:29:36 +02:00
Lowercase flag urls
This commit is contained in:
parent
bd6d60d24d
commit
2f01232144
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class CountrySerializer(serializers.ModelSerializer):
|
|||
|
||||
def get_flag_url(self, obj):
|
||||
public_url = self.get_public_url(obj)
|
||||
return public_url + '/media/' + 'flags/' + obj.country_code + '.png'
|
||||
return public_url + '/media/' + 'flags/' + obj.country_code.lower() + '.png'
|
||||
|
||||
class Meta:
|
||||
model = Country
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue