forked from uncloud/uncloud
8 lines
220 B
Python
8 lines
220 B
Python
from rest_framework import serializers
|
|
from opennebula.models import VM
|
|
|
|
|
|
class VMSerializer(serializers.HyperlinkedModelSerializer):
|
|
class Meta:
|
|
model = VM
|
|
fields = ['uuid', 'vmid', 'owner', 'data']
|