Commit 41c15e64 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Case/When/Case → Case/When

parent ed2691ba
......@@ -89,13 +89,11 @@ class ActiveServiceManager(models.Manager):
)
),
long_stopped=models.Case(
models.When(
models.Case(contribution__isnull=True, then=False),
models.Case(contribution__long_stopped=False, then=False),
models.Case(allocations_long_stopped=False, then=False),
default=True,
output_field=models.BooleanField(),
)
models.When(contribution__isnull=True, then=False),
models.When(contribution__long_stopped=False, then=False),
models.When(allocations_long_stopped=False, then=False),
default=True,
output_field=models.BooleanField(),
),
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment