Update docs about fallback toggle.

This commit is contained in:
Jacek Tomaszewski 2013-02-25 19:27:31 +01:00
parent c17f3a2338
commit 47ff2681d0
2 changed files with 12 additions and 0 deletions

View file

@ -272,3 +272,13 @@ Default: ``settings.DEBUG``
Used for modeltranslation related debug output. Currently setting it to
``False`` will just prevent Django's development server from printing the
``Registered xx models for translation`` message to stdout.
``MODELTRANSLATION_ENABLE_FALLBACKS``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Default: ``True``
.. versionadded:: 0.6
Control if :ref:`fallback <fallback>` (both language and value) will occur.

View file

@ -246,6 +246,8 @@ What is more, fallback languages order can be overridden per model, using ``Tran
Dict syntax is only allowed there.
.. versionadded:: 0.6
Even more, all fallbacks may be switched on or off for just some exceptional block of code using::
with fallbacks(False):