Parcourir la source

Add missing related_name for IPSubnet

Baptiste Jonglez il y a 11 ans
Parent
commit
f2bbeed413
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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')