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 Meta:
|
||||
model = Client
|
||||
fields = ('id', 'location')
|
||||
fields = ('id', 'location',)
|
||||
|
||||
|
||||
class LocationSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = Location
|
||||
fields = ('name')
|
||||
fields = ('name',)
|
||||
|
||||
|
||||
class TableSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = Table
|
||||
fields = ('client', 'number', 'name')
|
||||
fields = ('client', 'number', 'name',)
|
||||
|
Loading…
Reference in New Issue
Block a user