mirror of
https://github.com/daniviga/bite.git
synced 2024-12-24 17:21:25 +01:00
15 lines
403 B
Python
15 lines
403 B
Python
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',)
|