from rest_framework import serializers
from .models import Walk

class WalkSummarySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Walk
        fields = ('id', 'name', 'difficulty')

class WalkDetailSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Walk
        fields = ('id', 'name', 'difficulty', 'length', 'region', 'travel_info', 'features', 'walk_options',
                  'history', 'lunch_tea', 'source', 'source_text')