from rest_framework import serializers

from .models import Booking, Desktop


class DesktopSerializer(serializers.ModelSerializer):
    class Meta:
        model = Desktop
        fields = ('user', 'desktop', 'datetime_from', 'datetime_to')


class BookingSerializer(serializers.ModelSerializer):
    class Meta:
        model = Booking
        fields = ('user', 'desktop', 'datetime_from', 'datetime_to')

from rest_framework import serializers

from .models import Booking, Desktop


class DesktopSerializer(serializers.ModelSerializer):
    class Meta:
        model = Desktop
        fields = ('user', 'desktop', 'datetime_from', 'datetime_to')


class BookingSerializer(serializers.ModelSerializer):
    class Meta:
        model = Booking
        fields = ('user', 'desktop', 'datetime_from', 'datetime_to')
