Revision a4406d95 aquarium/models.py
b/aquarium/models.py | ||
---|---|---|
71 | 71 |
return self.name |
72 | 72 |
|
73 | 73 |
class VirtualMachineAddress(models.Model): |
74 |
ipfour = models.CharField(max_length=15)
|
|
75 |
ipsix = models.CharField(max_length=100)
|
|
76 |
public = models.BooleanField()
|
|
77 |
vmachine = models.ForeignKey(VirtualMachine)
|
|
74 |
ipfour = models.CharField(max_length=15)
|
|
75 |
ipsix = models.CharField(max_length=100)
|
|
76 |
public = models.BooleanField()
|
|
77 |
vmachine = models.ForeignKey(VirtualMachine)
|
|
78 | 78 |
|
79 |
class Meta:
|
|
80 |
verbose_name = u'Virtual Machine Network Address'
|
|
81 |
|
|
82 |
def __unicode__(self):
|
|
83 |
return u'%s address for vm named' % ( self.ipfour, self.vm_id.name )
|
|
79 |
class Meta:
|
|
80 |
verbose_name = u'Virtual Machine Network Address' |
|
81 |
|
|
82 |
def __unicode__(self):
|
|
83 |
return u'%s address for vm named' % ( self.ipfour, self.vm_id.name ) |
|
84 | 84 |
|
85 | 85 |
class ChargingLog(models.Model): |
86 | 86 |
vm = models.ForeignKey(VirtualMachine) |
Also available in: Unified diff