Parcourir la source

fix in_use ip antennes

Élie Bouttier il y a 7 ans
Parent
commit
e3baf129e0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      services/models.py

+ 1 - 1
services/models.py

@@ -48,7 +48,7 @@ class IPResourceManager(models.Manager):
                         ServiceAllocation.objects.filter(Q(resource=models.OuterRef('pk')) & get_active_filter())
                     ),
                     in_use_by_antenna=models.Exists(
-                        ServiceAllocation.objects.filter(Q(resource=models.OuterRef('pk')) & get_active_filter())
+                        AntennaAllocation.objects.filter(Q(resource=models.OuterRef('pk')) & get_active_filter())
                     )
         )
         qs = qs.annotate(