Skip to content

Commit

Permalink
Fix language issue for mails (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem authored Dec 11, 2024
1 parent c496f1b commit 2bad133
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*.pyc
*.DS_Store
*~$*
**/*.mo
.git*
.pytest*
.idea*
Expand Down
5 changes: 0 additions & 5 deletions backend/iam/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

import structlog
from django.utils import translation
import os

logger = structlog.get_logger(__name__)

Expand Down Expand Up @@ -287,10 +286,6 @@ def _create_user(
)

logger.info("user created sucessfully", user=user)
FORCE_LANGUAGE = os.environ.get("FORCE_LANGUAGE")
if FORCE_LANGUAGE:
translation.activate(FORCE_LANGUAGE)
print("FORCE_LANGUAGE:", FORCE_LANGUAGE)

if mailing:
try:
Expand Down

0 comments on commit 2bad133

Please sign in to comment.