forked from uncloud/uncloud
++update
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
bd6008462d
commit
288a65f219
5 changed files with 83 additions and 9 deletions
|
|
@ -14,7 +14,17 @@ class VMProductSerializer(serializers.HyperlinkedModelSerializer):
|
|||
model = VMProduct
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
# def create(self, validated_data):
|
||||
# return VMSnapshotProduct()
|
||||
|
||||
class VMSnapshotProductSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = VMSnapshotProduct
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
# verify that vm.owner == user.request
|
||||
def validate_vm(self, value):
|
||||
print(value)
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue