Skip to content

Commit

Permalink
Remove additional first/last names reversals
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Oct 31, 2024
1 parent 1c52e46 commit 3234c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions backend/donations/management/commands/generate_donations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion backend/donations/views/ngo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 3234c12

Please sign in to comment.