forked from uncloud/uncloud
Move snapshot to _pay and _vm
This commit is contained in:
parent
1ca247148c
commit
a58a361254
8 changed files with 140 additions and 192 deletions
|
|
@ -13,3 +13,13 @@ class VMProductSerializer(serializers.HyperlinkedModelSerializer):
|
|||
class Meta:
|
||||
model = VMProduct
|
||||
fields = '__all__'
|
||||
|
||||
class VMSnapshotProductSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = VMSnapshotProduct
|
||||
fields = ['uuid', 'status', 'recurring_price', 'one_time_price' ]
|
||||
|
||||
class VMSnapshotProductCreateSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = VMSnapshotProduct
|
||||
fields = '__all__'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue