mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-12 23:33:08 +00:00
Update docs about fallback toggle.
This commit is contained in:
parent
c17f3a2338
commit
47ff2681d0
2 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue