Skip to content

Commit

Permalink
Remove pdf_url from view
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Feb 23, 2024
1 parent 2e3841c commit 4267167
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/donations/views/ngo.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ def post(self, request, ngo_url):
request.session.pop("signature_required", None)
self.donor.has_signed = True

# TODO: Get rid of pdf_url
self.donor.pdf_url = self.donor.pdf_file.url
self.donor.save()

return redirect(reverse("ngo-twopercent-success", kwargs={"ngo_url": ngo_url}))
Expand Down Expand Up @@ -367,8 +365,6 @@ def get_post_value(arg, add_to_error_list=True):
# close the file after it has been uploaded
pdf.close()

# TODO: Get rid of pdf_url
donor.pdf_url = donor.pdf_file.url
donor.save()

# set the donor id in cookie
Expand Down

0 comments on commit 4267167

Please sign in to comment.