From 18f37ab5134a39c8eaf4450db777e0158954bd2b Mon Sep 17 00:00:00 2001 From: aminhashemi92 Date: Tue, 28 Oct 2025 14:25:56 +0330 Subject: [PATCH] fix installer list. --- installations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installations/views.py b/installations/views.py index 367edac..ea73453 100644 --- a/installations/views.py +++ b/installations/views.py @@ -23,7 +23,7 @@ def installation_assign_step(request, instance_id, step_id): next_step = instance.process.steps.filter(order__gt=step.order).first() # Installers list (profiles that have installer role) - installers = Profile.objects.filter(roles__slug=UserRoles.INSTALLER.value, county=instance.well.county).select_related('user').all() + installers = Profile.objects.filter(roles__slug=UserRoles.INSTALLER.value, county__city=instance.well.county.city).select_related('user').all() assignment, _ = InstallationAssignment.objects.get_or_create(process_instance=instance) # Role flags