update serializers
This commit is contained in:
parent
b3445879fd
commit
df7ad948c1
@ -5,15 +5,16 @@ from rest_framework import serializers
|
|||||||
class ClientSerializer(serializers.HyperlinkedModelSerializer):
|
class ClientSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Client
|
model = Client
|
||||||
fields = ('id', 'location')
|
fields = ('id', 'location',)
|
||||||
|
|
||||||
|
|
||||||
class LocationSerializer(serializers.HyperlinkedModelSerializer):
|
class LocationSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Location
|
model = Location
|
||||||
fields = ('name')
|
fields = ('name',)
|
||||||
|
|
||||||
|
|
||||||
class TableSerializer(serializers.HyperlinkedModelSerializer):
|
class TableSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Table
|
model = Table
|
||||||
fields = ('client', 'number', 'name')
|
fields = ('client', 'number', 'name',)
|
||||||
|
Loading…
Reference in New Issue
Block a user