Merge remote-tracking branch 'origin/fix_installer' into production

This commit is contained in:
Hadi 2025-10-28 14:40:14 +03:30
commit 7720926b2b

View file

@ -23,7 +23,7 @@ def installation_assign_step(request, instance_id, step_id):
next_step = instance.process.steps.filter(order__gt=step.order).first() next_step = instance.process.steps.filter(order__gt=step.order).first()
# Installers list (profiles that have installer role) # 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) assignment, _ = InstallationAssignment.objects.get_or_create(process_instance=instance)
# Role flags # Role flags