from rest_framework import serializers

from adv.models import Room

class RoomSerializer(serializers.ModelSerializer):
    """Serializer for room objects"""
    class Meta:
        model = Room
        fields = ('id', 'name', 'description', 'north', 'south', 'east', 'west')
        read_only_fields = ('id',)


from rest_framework import serializers

from adv.models import Room

class RoomSerializer(serializers.ModelSerializer):
    """Serializer for room objects"""
    class Meta:
        model = Room
        fields = ('id', 'name', 'description', 'north', 'south', 'east', 'west')
        read_only_fields = ('id',)


Serializer for room objects