registered VM types model in the admin
This commit is contained in:
		
					parent
					
						
							
								d881620c42
							
						
					
				
			
			
				commit
				
					
						5e1419cd1c
					
				
			
		
					 5 changed files with 49 additions and 5 deletions
				
			
		|  | @ -3,8 +3,6 @@ from django.utils.translation import ugettext_lazy as _ | |||
| from django.core import serializers | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| class RailsBetaUser(models.Model): | ||||
|     email = models.EmailField(unique=True) | ||||
|     received_date = models.DateTimeField('date received') | ||||
|  | @ -34,7 +32,10 @@ class VirtualMachineType(models.Model): | |||
|     memory_price = models.FloatField() | ||||
|     core_price = models.FloatField() | ||||
|     disk_size_price = models.FloatField() | ||||
|     hosting_company = models.CharField(max_length=10, choices=HOSTING_TYPES) | ||||
|     hosting_company = models.CharField(max_length=30, choices=HOSTING_TYPES) | ||||
| 
 | ||||
|     def __str__(self): | ||||
|         return "%s" % (self.get_hosting_company_display()) | ||||
| 
 | ||||
|     def get_serialized_data(self): | ||||
|         return serializers("json", self) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue