1
0
Fork 0
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:
Sean Morley 2024-09-11 10:01:36 -04:00
parent bd6d60d24d
commit 2f01232144

View file

@ -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