#23098: ugettext_lazy gets translated too early in modelForm field choices
-------------------------------------+-------------------------------------
Reporter: magopian | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.7-rc-1
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Ready for
Has patch: 1 | checkin
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by magopian):
Aymeric, I'm sorry that I confused things by talking about the pytest
usage in the STR, while it actually has nothing to do with the issue. It's
just that I discovered this issue in this particular case, while it was
just "failing" (translating to early) silently otherwise.
As you said, the issue is that the translation is resolved at import time,
and that's the point of this ticket (hence the title), sorry if I made it
harder to understand by providing to much (or confusing) details.
--
Ticket URL: <https://code.djangoproject.com/ticket/23098#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.b356ca25294071da6f08a4cd28c95455%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.