@@ -83,7 +83,7 @@ class ActiveServiceManager(models.Manager):
output_field=models.BooleanField()
)
- qs = qs.order_by('pk', '-has_active_allocations').distinct() # complicated things here, do not touch if you're not sure
+ qs = qs.order_by('pk', '-has_active_allocations').distinct('pk') # complicated things here, do not touch if you're not sure
return qs