uncloud-mravi/uncloud/opennebula/serializers.py

15 lines
330 B
Python
Raw Normal View History

from rest_framework import serializers
from opennebula.models import VM
class VMSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = VM
2020-03-05 22:18:07 +00:00
fields = '__all__'
2020-02-23 14:33:26 +00:00
class OpenNebulaVMSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = VM
2020-03-05 22:18:07 +00:00
fields = '__all__'