forked from uncloud/uncloud
vmhosts, restructure urls, etc.
This commit is contained in:
parent
d4b170f813
commit
c7ded96658
9 changed files with 134 additions and 47 deletions
|
|
@ -1,9 +1,15 @@
|
|||
from django.contrib.auth import get_user_model
|
||||
|
||||
from rest_framework import serializers
|
||||
from .models import VMHost
|
||||
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__'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue