From 3234c12d0eb0331591fe88fab2f037fdde000880 Mon Sep 17 00:00:00 2001 From: Tudor Amariei Date: Thu, 31 Oct 2024 16:38:42 +0200 Subject: [PATCH] Remove additional first/last names reversals --- backend/donations/management/commands/generate_donations.py | 6 ++---- backend/donations/views/ngo.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/donations/management/commands/generate_donations.py b/backend/donations/management/commands/generate_donations.py index 77309c42..76513aab 100644 --- a/backend/donations/management/commands/generate_donations.py +++ b/backend/donations/management/commands/generate_donations.py @@ -73,7 +73,6 @@ def handle(self, *args, **options): income_type="wage", has_signed=random.choice([True, False]), two_years=random.choice([True, False]), - pdf_url="https://storage.googleapis.com/redirectioneaza/logo_bw.png", ) donor.set_cnp(cnp) donor.set_address_helper(**address) @@ -87,8 +86,8 @@ def handle(self, *args, **options): "ap": str(address["street_ap"]), } donor_dict = { - "first_name": donor.l_name, - "last_name": donor.f_name, + "last_name": donor.l_name, + "first_name": donor.f_name, "father": donor.initial, "email": donor.email, "tel": donor.phone, @@ -98,7 +97,6 @@ def handle(self, *args, **options): "income_type": donor.income_type, "has_signed": donor.has_signed, "two_years": donor.two_years, - "pdf_url": donor.pdf_url, } donor_dict.update(address_dict) diff --git a/backend/donations/views/ngo.py b/backend/donations/views/ngo.py index d343db50..88ab1079 100644 --- a/backend/donations/views/ngo.py +++ b/backend/donations/views/ngo.py @@ -401,7 +401,7 @@ def get_post_value(arg, add_to_error_list=True): html_template="email/twopercent-form/twopercent_form.html", text_template="email/twopercent-form/twopercent_form_text.txt", context={ - "name": donor.l_name, + "name": donor.f_name, "form_url": donor.form_url, "ngo": ngo, },