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