From c8a04c48471a3d7005baf5f47bbec5b73273b652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Mon, 3 Apr 2023 20:33:53 +0200 Subject: [PATCH] fix contract listing condition --- contracts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/views.py b/contracts/views.py index b358388..3e71118 100644 --- a/contracts/views.py +++ b/contracts/views.py @@ -98,7 +98,7 @@ def view_contract(request, id: int): | ( models.Q(created_by=request.user) if not request.user.is_anonymous - else True + else models.Value(True) ) ) -- GitLab