mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #20877 -- added a performance optimization guide
This commit is contained in:
parent
4db2752e28
commit
dc8f95b639
6 changed files with 403 additions and 22 deletions
|
@ -495,8 +495,8 @@ Atom1Feed
|
|||
|
||||
For cases like this, use the ``django.utils.functional.allow_lazy()``
|
||||
decorator. It modifies the function so that *if* it's called with a lazy
|
||||
translation as the first argument, the function evaluation is delayed until it
|
||||
needs to be converted to a string.
|
||||
translation as one of its arguments, the function evaluation is delayed
|
||||
until it needs to be converted to a string.
|
||||
|
||||
For example::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue