Fixed #20877 -- added a performance optimization guide

This commit is contained in:
evildmp 2013-09-20 23:21:49 +01:00
parent 4db2752e28
commit dc8f95b639
6 changed files with 403 additions and 22 deletions

View file

@ -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::