Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/common/constants/permission_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import List

from django.db import models
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _

from maxkb import settings

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The provided code snippet appears to be updating django.utils.translation.gettext with its lazy equivalent gettext_lazy. This can improve performance by not performing immediate translation when the string is referenced but instead delaying it until actually rendered. There's no apparent other issues or optimizations needed based on this update.

Expand Down
Loading