Skip to content

Commit 1807b56

Browse files
committed
Remove additional first/last names reversals
1 parent a2aec69 commit 1807b56

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

backend/donations/management/commands/generate_donations.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def handle(self, *args, **options):
7373
income_type="wage",
7474
has_signed=random.choice([True, False]),
7575
two_years=random.choice([True, False]),
76-
pdf_url="https://storage.googleapis.com/redirectioneaza/logo_bw.png",
7776
)
7877
donor.set_cnp(cnp)
7978
donor.set_address_helper(**address)
@@ -87,8 +86,8 @@ def handle(self, *args, **options):
8786
"ap": str(address["street_ap"]),
8887
}
8988
donor_dict = {
90-
"first_name": donor.l_name,
91-
"last_name": donor.f_name,
89+
"last_name": donor.l_name,
90+
"first_name": donor.f_name,
9291
"father": donor.initial,
9392
"email": donor.email,
9493
"tel": donor.phone,
@@ -98,7 +97,6 @@ def handle(self, *args, **options):
9897
"income_type": donor.income_type,
9998
"has_signed": donor.has_signed,
10099
"two_years": donor.two_years,
101-
"pdf_url": donor.pdf_url,
102100
}
103101
donor_dict.update(address_dict)
104102

backend/donations/views/ngo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def get_post_value(arg, add_to_error_list=True):
401401
html_template="email/twopercent-form/twopercent_form.html",
402402
text_template="email/twopercent-form/twopercent_form_text.txt",
403403
context={
404-
"name": donor.l_name,
404+
"name": donor.f_name,
405405
"form_url": donor.form_url,
406406
"ngo": ngo,
407407
},

0 commit comments

Comments
 (0)