From 47ff2681d0057b549cfcef7cf3a622fce0015772 Mon Sep 17 00:00:00 2001 From: Jacek Tomaszewski Date: Mon, 25 Feb 2013 19:27:31 +0100 Subject: [PATCH] Update docs about fallback toggle. --- docs/modeltranslation/installation.rst | 10 ++++++++++ docs/modeltranslation/usage.rst | 2 ++ 2 files changed, 12 insertions(+) diff --git a/docs/modeltranslation/installation.rst b/docs/modeltranslation/installation.rst index 6629781..e51b144 100644 --- a/docs/modeltranslation/installation.rst +++ b/docs/modeltranslation/installation.rst @@ -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 ` (both language and value) will occur. diff --git a/docs/modeltranslation/usage.rst b/docs/modeltranslation/usage.rst index ef29dfd..6c2246d 100644 --- a/docs/modeltranslation/usage.rst +++ b/docs/modeltranslation/usage.rst @@ -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):