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')

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 = ('id', 'name', 'address', 'latitude', 'longitudes')


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

Add id in the room, venue endpoint