forked from uncloud/uncloud
[opennebula] Fix fields/serializers
This commit is contained in:
parent
efbe1c0596
commit
0e6a6afd88
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ from opennebula.models import VM
|
||||||
class VMSerializer(serializers.HyperlinkedModelSerializer):
|
class VMSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = VM
|
model = VM
|
||||||
fields = ['id', 'owner', 'data']
|
fields = '__all__'
|
||||||
|
|
||||||
|
|
||||||
class OpenNebulaVMSerializer(serializers.HyperlinkedModelSerializer):
|
class OpenNebulaVMSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = VM
|
model = VM
|
||||||
fields = ['id', 'owner', 'cores', 'ram_in_gb', 'disks', 'last_host', 'graphics']
|
fields = '__all__'
|
||||||
|
|
Loading…
Reference in a new issue