carom-server/billard/serializers.py

9 lines
245 B
Python

from billard.models import *
from rest_framework import serializers
class LocationDataSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = LocationData
fields = ('client_id', 'desk_no', 'tst', 'on_off',)