1
0
Parcourir la source

Don't impose uniqueness on the subnets of the allocation log

Baptiste Jonglez il y a 11 ans
Parent
commit
45ffc45b35
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      coin/resources/models.py

+ 1 - 1
coin/resources/models.py

@@ -131,7 +131,7 @@ class IPAllocationLog(models.Model):
     """
     # All we need to do is automatically fill this in upon other objects'
     # creation/destruction/deactivation.
-    subnet = CidrAddressField(unique=True)
+    subnet = CidrAddressField()
     user = models.ForeignKey('members.Member', null=True, blank=True,
                              on_delete=models.SET_NULL)
     subscription = models.ForeignKey('offers.OfferSubscription', null=True,