cleanup views/vmsnapshot

This commit is contained in:
Nico Schottelius 2020-02-27 12:09:29 +01:00
parent 657dfc541e
commit 41a5eae879
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ from opennebula import views as oneviews
router = routers.DefaultRouter()
# user / regular urls
router.register(r'vm/snapshot', vmviews.VMSnapshotProductView, basename='VMSnapshot')
router.register(r'vm/snapshot', vmviews.VMSnapshotProductViewSet, basename='VMSnapshot')
router.register(r'vm/vm', vmviews.VMProductViewSet, basename='vmproduct')
# Pay

View File

@ -6,7 +6,7 @@ from django.shortcuts import get_object_or_404
from rest_framework import viewsets, permissions
from rest_framework.response import Response
from .models import VMHost, VMProduct. VMSnapshotProduct
from .models import VMHost, VMProduct, VMSnapshotProduct
from uncloud_pay.models import Order
from .serializers import VMHostSerializer, VMProductSerializer, VMSnapshotProductSerializer