def generic_letter(letter): if letter.is_postcard: return utils.render_postcard( "correspondence/generic-postcard.txt", {"letter": letter, "address": letter.recipient.profile.full_address()}, ) else: return utils.render_tex_to_pdf("correspondence/generic-letter.tex", {"letter": letter})
def generic_letter(letter): if letter.is_postcard: return utils.render_postcard("correspondence/generic-postcard.txt", { 'letter': letter, 'address': letter.recipient.profile.full_address() }) else: return utils.render_tex_to_pdf("correspondence/generic-letter.tex", { 'letter': letter, })
def waitlist_postcard(letter): return utils.render_postcard( "correspondence/waitlist-postcard.txt", { 'letter': letter, 'address': letter.recipient.profile.full_address(), })
def waitlist_postcard(letter): return utils.render_postcard("correspondence/waitlist-postcard.txt", { 'letter': letter, 'address': letter.recipient.profile.full_address(), })
def waitlist_postcard(letter): return utils.render_postcard( "correspondence/waitlist-postcard.txt", {"letter": letter, "address": letter.recipient.profile.full_address()} )