mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Used extlinks for PyPI links.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
255f534590
commit
2c4dc64760
@@ -415,8 +415,7 @@ Working with lazy translation objects
|
||||
The result of a ``gettext_lazy()`` call can be used wherever you would use a
|
||||
string (a :class:`str` object) in other Django code, but it may not work with
|
||||
arbitrary Python code. For example, the following won't work because the
|
||||
`requests <https://pypi.org/project/requests/>`_ library doesn't handle
|
||||
``gettext_lazy`` objects::
|
||||
:pypi:`requests` library doesn't handle ``gettext_lazy`` objects::
|
||||
|
||||
body = gettext_lazy("I \u2764 Django") # (Unicode :heart:)
|
||||
requests.post("https://example.com/send", data={"body": body})
|
||||
|
||||
Reference in New Issue
Block a user