diff --git a/inventory/forms.py b/inventory/forms.py index d5a34498..52c69ed6 100644 --- a/inventory/forms.py +++ b/inventory/forms.py @@ -2268,7 +2268,7 @@ class CarDealershipRegistrationForm(forms.ModelForm): class CarDetailsEstimateCreate(forms.Form): customer = forms.ModelChoiceField( - queryset=Customer.objects.all(), + queryset=Customer.objects.filter(active=True), required=True, label="Customer", widget=forms.Select(attrs={"class": "form-control"}), diff --git a/inventory/views.py b/inventory/views.py index 2a3326c4..1f3b1de4 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -5005,7 +5005,7 @@ def create_estimate(request, dealer_slug, slug=None): customer = opportunity.customer print(customer) form.fields["customer"].queryset = models.Customer.objects.filter( - pk=customer.pk + pk=customer.pk ) form.initial["customer"] = customer diff --git a/templates/groups/group_detail.html b/templates/groups/group_detail.html index d4f269c8..0800b8f0 100644 --- a/templates/groups/group_detail.html +++ b/templates/groups/group_detail.html @@ -36,7 +36,8 @@
{{ _("Group Details") }}
- {% trans "Group List" %} + {% trans "Groups List" %} + {% trans "Staffs List" %}