update the lead create qs to show only active staff

This commit is contained in:
ismail 2025-05-22 19:19:53 +03:00
parent e5884b2b2c
commit 8613a796b5

View File

@ -4810,6 +4810,7 @@ def lead_create(request):
messages.error(request, f"Lead was not created ... : {str(e)}")
form = forms.LeadForm()
form.fields["assigned_to"].queryset = form.fields["assigned_to"].queryset.filter(active=True)
form.filter_qs(dealer=dealer)
if make := request.GET.get("id_car_make", None):