1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 03:35:18 +02:00

Update entrypoint

This commit is contained in:
Sean Morley 2024-09-11 09:31:25 -04:00
parent 9ba5b25ab5
commit bd6d60d24d
5 changed files with 10 additions and 11 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']
read_only_fields = ['id', 'name', 'country_code', 'subregion', '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', 'geometry']
read_only_fields = ['id', 'name', 'country', 'longitude', 'latitude']
class VisitedRegionSerializer(serializers.ModelSerializer):
class Meta: