Skip to content

Commit

Permalink
πŸ› Use message recipient publicbody in pdf letter
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Jan 27, 2025
1 parent bda7767 commit aeeac1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion froide/foirequest/pdf_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LetterPDFGenerator(PDFGenerator):
template_name = "foirequest/pdf/message_letter.html"

def get_publicbody(self):
return self.obj.request.public_body
return self.obj.recipient_public_body

def get_recipient_address(self):
pb = self.get_publicbody()
Expand Down

0 comments on commit aeeac1c

Please sign in to comment.