Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #149: Extracted email messages to templates. Fixed some bugs, cleaned up some code. #156

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

lilliputten
Copy link
Collaborator

Views of sending messages:

2024-04-10-20-17-18

2024-04-10-20-17-10

Overall changes:

  • Renamed used modules from billing to payment.
  • Extracting email messages to templates (in progress): passing request parameter to message generation code, added templates for payment invoice, added email helpers.
  • Minor changes.
  • Fixed error 'Unrecognized currency...' (using currencies list from constants instead of literal list, with missed 'USD' value).
  • Removed 'test' assets.
  • Fixed found errors in sending messages for a registration invoice event.
  • Cleaned up code.
  • Added template for sending receipt.

@lilliputten lilliputten linked an issue Apr 10, 2024 that may be closed by this pull request
@lilliputten lilliputten requested a review from cmutel April 10, 2024 13:26
@lilliputten lilliputten self-assigned this Apr 10, 2024
text = render_to_string(
template_name=email_template,
context=context,
request=request,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You had to make a lot of changes elsewhere to get the request here, but I don't understand why it is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor hard-coded email messages as template files
2 participants