update lead create view #commented the user_create for customer and organization

This commit is contained in:
ismail 2025-08-07 16:14:13 +03:00
parent 84d2c9b980
commit 22b87d17f6

View File

@ -6056,7 +6056,7 @@ def lead_create(request, dealer_slug):
last_name=instance.last_name,
active=False,
)
customer.create_user_model(for_lead=True)
# customer.create_user_model(for_lead=True)
customer.create_customer_model(for_lead=True)
customer.save()
instance.customer = customer
@ -6074,7 +6074,7 @@ def lead_create(request, dealer_slug):
name=instance.first_name + " " + instance.last_name,
active=False,
)
organization.create_user_model(for_lead=True)
# organization.create_user_model(for_lead=True)
organization.create_customer_model(for_lead=True)
organization.save()
instance.organization = organization