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

Add clear map function

This commit is contained in:
Sean Morley 2024-08-23 14:24:30 -04:00
parent b11c3de461
commit f75c650a20
2 changed files with 15 additions and 2 deletions

View file

@ -16,13 +16,13 @@ class CountrySerializer(serializers.ModelSerializer):
class Meta:
model = Country
fields = '__all__' # Serialize all fields of the Adventure model
read_only_fields = ['id', 'name', 'country_code', 'continent', 'flag_url', 'geometry']
read_only_fields = ['id', 'name', 'country_code', 'continent', 'flag_url']
class RegionSerializer(serializers.ModelSerializer):
class Meta:
model = Region
fields = '__all__' # Serialize all fields of the Adventure model
read_only_fields = ['id', 'name', 'country', 'name_en']
read_only_fields = ['id', 'name', 'country', 'name_en', 'geometry']
class VisitedRegionSerializer(serializers.ModelSerializer):
class Meta: