Added pagination to orders view, Created, Virtual machines booked page ,Changed logged user nabber , Added pagination to virtual machines view , Started Virtual machine detail page
This commit is contained in:
		
					parent
					
						
							
								3a12308e85
							
						
					
				
			
			
				commit
				
					
						906df2a111
					
				
			
		
					 12 changed files with 289 additions and 116 deletions
				
			
		
							
								
								
									
										8
									
								
								hosting/managers.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								hosting/managers.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| from django.db import models | ||||
| 
 | ||||
| 
 | ||||
| class VMPlansManager(models.Manager): | ||||
| 
 | ||||
|     def active(self, user, **kwargs): | ||||
|         return self.select_related('hostingorder__customer__user').\ | ||||
|             filter(hostingorder__customer__user=user, hostingorder__approved=True, **kwargs) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue