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