From 81998d5e8424f3e34d66170699bfb162a6214dba Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 7 Oct 2024 19:39:18 -0400 Subject: [PATCH] Fix --- backend/server/adventures/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/server/adventures/serializers.py b/backend/server/adventures/serializers.py index 77d8d497..586206d0 100644 --- a/backend/server/adventures/serializers.py +++ b/backend/server/adventures/serializers.py @@ -1,5 +1,5 @@ import os -from .models import Adventure, AdventureImage, ChecklistItem, Collection, Note, Transportation, Checklist +from .models import Adventure, AdventureImage, ChecklistItem, Collection, Note, Transportation, Checklist, Visit from rest_framework import serializers class AdventureImageSerializer(serializers.ModelSerializer): @@ -24,7 +24,7 @@ class AdventureSerializer(serializers.ModelSerializer): images = AdventureImageSerializer(many=True, read_only=True) class Meta: model = Adventure - fields = ['id', 'user_id', 'name', 'description', 'rating', 'activity_types', 'location', 'date', 'is_public', 'collection', 'created_at', 'updated_at', 'images', 'link', 'type', 'longitude', 'latitude', 'end_date'] + fields = ['id', 'user_id', 'name', 'description', 'rating', 'activity_types', 'location', 'start_date', 'is_public', 'collection', 'created_at', 'updated_at', 'images', 'link', 'type', 'longitude', 'latitude', 'end_date'] read_only_fields = ['id', 'created_at', 'updated_at', 'user_id'] def to_representation(self, instance):