forked from uncloud/uncloud
0c7ca1147a
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
15 lines
394 B
Python
15 lines
394 B
Python
from django.contrib.auth import get_user_model
|
|
|
|
from rest_framework import serializers
|
|
from .models import VMHost, VMProduct
|
|
|
|
class VMHostSerializer(serializers.HyperlinkedModelSerializer):
|
|
class Meta:
|
|
model = VMHost
|
|
fields = '__all__'
|
|
|
|
|
|
class VMProductSerializer(serializers.HyperlinkedModelSerializer):
|
|
class Meta:
|
|
model = VMProduct
|
|
fields = '__all__'
|