This commit is contained in:
Marwan Alwali 2025-02-13 18:19:55 +03:00
parent f777cea2bb
commit dbf4c6f91d
4 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,8 @@ from django.urls import reverse, reverse_lazy
from django.contrib import messages
from django.db.models import Sum, F, Count
from django.db import transaction
from twilio.rest.verify.v2 import form
from .forms import VendorForm
from .services import (
decodevin,
@ -1368,7 +1370,13 @@ def CustomerUpdateView(request, pk):
if "customer_info" in customer.additional_info
else {}
)
# form = CustomerModelForm
return render(request, "customers/customer_form.html", {"form": form})
# class CustomerUpdateView(UpdateView, LoginRequiredMixin, PermissionRequiredMixin):
# model = CustomerModel
# form_class = forms.CustomerForm
# template_name = "customers/customer_form.html"
@login_required