cleanup views/vmsnapshot
This commit is contained in:
		
					parent
					
						
							
								657dfc541e
							
						
					
				
			
			
				commit
				
					
						41a5eae879
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue