23 lines
579 B
Python
23 lines
579 B
Python
from billard.serializers import *
|
|
from rest_framework import viewsets
|
|
|
|
|
|
class ClientViewSet(viewsets.ModelViewSet):
|
|
queryset = Client.objects.all()
|
|
serializer_class = ClientSerializer
|
|
|
|
|
|
class LocationViewSet(viewsets.ModelViewSet):
|
|
queryset = Location.objects.all()
|
|
serializer_class = LocationSerializer
|
|
|
|
|
|
class TableViewSet(viewsets.ModelViewSet):
|
|
queryset = Table.objects.all()
|
|
serializer_class = TableSerializer
|
|
|
|
|
|
class LocationDataViewSet(viewsets.ModelViewSet):
|
|
queryset = LocationData.objects.all()
|
|
serializer_class = LocationDataSerializer
|