diff --git a/core/core/metrics.py b/core/core/metrics.py index 083bda2..149829c 100644 --- a/core/core/metrics.py +++ b/core/core/metrics.py @@ -17,7 +17,7 @@ class ItemCountCollector(object): Item.all_objects .annotate( returned=Case( - When(returned_at__isnull=False, then=Value(False)), + When(returned_at__isnull=True, then=Value(False)), default=Value(True), output_field=BooleanField() )