From 1f06f49383dae2cfbdbc57052223274db9a4f8fb Mon Sep 17 00:00:00 2001 From: Lyndsy Simon Date: Wed, 10 Mar 2021 13:50:40 -0600 Subject: [PATCH] docs: add optional flags for update_translation_fields command --- docs/modeltranslation/commands.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/modeltranslation/commands.rst b/docs/modeltranslation/commands.rst index 4a59570..779e00e 100644 --- a/docs/modeltranslation/commands.rst +++ b/docs/modeltranslation/commands.rst @@ -41,6 +41,16 @@ in ``settings.py``. All translated models (as specified in the translation files) from all apps will be populated with initial data. +Optionally, an app label and model name may be passed to populate only a subset +of translated models. + +.. code-block:: console + + $ python manage.py update_translation_fields myapp + +.. code-block:: console + + $ python manage.py update_translation_fields myapp mymodel .. _commands-sync_translation_fields: