|
@@ -12,6 +12,9 @@ class IPPool(models.Model):
|
|
|
inet = CidrAddressField()
|
|
|
objects = NetManager()
|
|
|
|
|
|
+ def __unicode__(self):
|
|
|
+ return self.name
|
|
|
+
|
|
|
|
|
|
class IPSubnet(models.Model):
|
|
|
inet = CidrAddressField()
|
|
@@ -19,3 +22,6 @@ class IPSubnet(models.Model):
|
|
|
ip_pool = models.ForeignKey(IPPool)
|
|
|
offer_subscription = models.ForeignKey('offers.OfferSubscription',
|
|
|
related_name='ip_subnet')
|
|
|
+
|
|
|
+ def __unicode__(self):
|
|
|
+ return str(self.inet)
|