From 71ca2e58e34ab346dce7ca8b7c2150cbb8daffed Mon Sep 17 00:00:00 2001 From: Hadi Date: Wed, 15 Oct 2025 15:13:28 +0330 Subject: [PATCH] add defualt filter for nassab --- processes/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/processes/views.py b/processes/views.py index 9c33e66..a8a1c6e 100644 --- a/processes/views.py +++ b/processes/views.py @@ -45,7 +45,10 @@ def request_list(request): status_q = (request.GET.get('status') or '').strip() affairs_q = (request.GET.get('affairs') or '').strip() broker_q = (request.GET.get('broker') or '').strip() - step_q = (request.GET.get('step') or '').strip() + if request.user.profile.roles.filter(slug='inst'): + step_q = (request.GET.get('step') or '6').strip() + else: + step_q = (request.GET.get('step') or '').strip() if status_q: instances = instances.filter(status=status_q)