from rest_framework import serializers
from saveserches.models import SavedSearch


class SaveSearchesSerializer(serializers.ModelSerializer):


    class Meta:
        model = SavedSearch


class SaveSearchesListSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField()
    race = serializers.StringRelatedField()


    class Meta:
        model = SavedSearch
        fields = ('id', 'name', 'keywords', 'category', 'latitude',
            'longitude', 'race')

68b2b290774aa92af2332dd0db59fe363032eaaa
<mask token>


class SaveSearchesListSerializer(serializers.ModelSerializer):
    <mask token>
    <mask token>


    class Meta:
        model = SavedSearch
        fields = ('id', 'name', 'keywords', 'category', 'latitude',
            'longitude', 'race')

<mask token>


class SaveSearchesListSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField()
    race = serializers.StringRelatedField()


    class Meta:
        model = SavedSearch
        fields = ('id', 'name', 'keywords', 'category', 'latitude',
            'longitude', 'race')

<mask token>


class SaveSearchesSerializer(serializers.ModelSerializer):


    class Meta:
        model = SavedSearch


class SaveSearchesListSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField()
    race = serializers.StringRelatedField()


    class Meta:
        model = SavedSearch
        fields = ('id', 'name', 'keywords', 'category', 'latitude',
            'longitude', 'race')

from rest_framework import serializers
from saveserches.models import SavedSearch


class SaveSearchesSerializer(serializers.ModelSerializer):


    class Meta:
        model = SavedSearch


class SaveSearchesListSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField()
    race = serializers.StringRelatedField()


    class Meta:
        model = SavedSearch
        fields = ('id', 'name', 'keywords', 'category', 'latitude',
            'longitude', 'race')
