Skip to content

Commit

Permalink
Don't set user company_name if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 11, 2023
1 parent 070bf1e commit a4b14d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lemarche/www/tenders/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit a4b14d3

Please sign in to comment.