1
0
mirror of https://github.com/daniviga/bite.git synced 2024-12-25 01:31:25 +01:00
bite/freedcs/api/serializers.py

15 lines
403 B
Python
Raw Normal View History

2020-06-02 00:57:20 +02:00
from rest_framework import serializers
from api.models import Device, WhiteList
class DeviceSerializer(serializers.ModelSerializer):
class Meta:
model = Device
fields = ('serial', 'creation_time', 'updated_time',)
# class WhiteListSerializer(serializers.ModelSerializer):
# class Meta:
# model = Device
# fields = ('serial', 'creation_time', 'updated_time',)