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

refactor(organization): use unique email template names #5531

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Feb 18, 2025

📣 Summary

Ensured email template names are unique to prevent conflicts between closely related Django apps.

📖 Description

When two Django apps use the same email template name and are closely linked, Django does not differentiate between them and selects the first template it finds in the filesystem hierarchy. This can lead to inconsistencies in email rendering, where the wrong template is used depending on the directory structure.

This refactor resolves the issue by ensuring that all email template names are unique across apps, preventing unintended overrides and ensuring the correct template is always used.

@noliveleger noliveleger requested a review from jnm as a code owner February 18, 2025 11:15
@noliveleger noliveleger requested review from rajpatel24 and removed request for jnm February 18, 2025 11:15
@noliveleger noliveleger self-assigned this Feb 18, 2025
Copy link
Contributor

@rajpatel24 rajpatel24 left a comment

Choose a reason for hiding this comment

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

@noliveleger Need to fix the failing tests

@rajpatel24 rajpatel24 self-requested a review February 18, 2025 12:47
Copy link
Contributor

@rajpatel24 rajpatel24 left a comment

Choose a reason for hiding this comment

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

LGTM, tested and works well

@noliveleger noliveleger merged commit d68baba into main Feb 18, 2025
4 checks passed
@noliveleger noliveleger deleted the fix-conflicting-template-names branch February 18, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants