Skip to content

Conversation

Yuliaborzhak
Copy link
Contributor

See #1545


if (original := context.get("original")) and not isinstance(original, str):
if (original := context.get("original")) and not isinstance(
original, StrOrPromise
Copy link
Contributor

Choose a reason for hiding this comment

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

from django.utils.functional import Promise

is_text = isinstance(original, (str, Promise))

@Yuliaborzhak Yuliaborzhak force-pushed the fix/header_title_for_translated_strings branch from d085ebe to 1dd8d91 Compare September 1, 2025 08:39
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.

3 participants