Browse Source

Add missing related_name for IPSubnet

Baptiste Jonglez 11 years ago
parent
commit
f2bbeed413
1 changed files with 2 additions and 1 deletions
  1. 2 1
      coin/resources/models.py

+ 2 - 1
coin/resources/models.py

@@ -17,4 +17,5 @@ class IPSubnet(models.Model):
     inet = CidrAddressField()
     objects = NetManager()
     ip_pool = models.ForeignKey(IPPool)
-    offer_subscription = models.ForeignKey('offers.OfferSubscription')
+    offer_subscription = models.ForeignKey('offers.OfferSubscription',
+                                           related_name='ip_subnet')