From a4b14d3a5af54b8106cfd40e2db9af78845895bc Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Mon, 11 Dec 2023 16:36:31 +0100 Subject: [PATCH] Don't set user company_name if not provided --- lemarche/www/tenders/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lemarche/www/tenders/utils.py b/lemarche/www/tenders/utils.py index 3a7cdeb89..b756b78d6 100644 --- a/lemarche/www/tenders/utils.py +++ b/lemarche/www/tenders/utils.py @@ -64,9 +64,7 @@ def get_or_create_user_from_anonymous_content( buyer_kind_detail = ( tender_dict.get("contact_buyer_kind_detail") if tender_dict.get("contact_buyer_kind_detail") else "" ) - company_name = ( - tender_dict.get("contact_company_name") if tender_dict.get("contact_company_name") else "Particulier" - ) + company_name = tender_dict.get("contact_company_name") if tender_dict.get("contact_company_name") else "" user, created = User.objects.get_or_create( email=email, defaults={