from rest_framework import serializers

from .models import Conference, ConferenceVenue, Room


class ConferenceSerializer(serializers.HyperlinkedModelSerializer):
    status = serializers.CharField(source='get_status_display')

    class Meta:
        model = Conference
        fields = ('id', 'name', 'slug', 'description',
                  'start_date', 'end_date', 'status', 'venue')


class VenueSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ConferenceVenue
        fields = ('name', 'address')


class RoomSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Room
        fields = ('name', 'venue', 'note')

from rest_framework import serializers

from .models import Conference, ConferenceVenue, Room


class ConferenceSerializer(serializers.HyperlinkedModelSerializer):
    status = serializers.CharField(source='get_status_display')

    class Meta:
        model = Conference
        fields = ('id', 'name', 'slug', 'description',
                  'start_date', 'end_date', 'status', 'venue')


class VenueSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ConferenceVenue
        fields = ('name', 'address', 'latitude', 'longitudes')


class RoomSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Room
        fields = ('name', 'venue', 'note')

Add latitude and longitude in api
Add latitude and longitude in api
