[Fixed]-Python gettext error: Can't convert '__proxy__' object to str implicitly

17👍

__proxy__ is translation string whose actual translation result isn’t determined until the object is used in a string (i.e. what happens when you use ugettext_lazy instead of ugettext here).

Documentation

👤Escher

4👍

According to the given Documentation link:

Calling str() with the lazy translation as the argument will generate a string in the current locale.

Leave a comment