Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
text-adi committed Apr 12, 2023
1 parent ef9d67d commit 023c102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modeltranslation/registration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ In this case, for the ``News`` model, translations will be available in the lang
For the ``NewsWithImage`` model, since the ``languages`` argument was not passed, the value from
``settings.MODELTRANSLATION_LANGUAGES`` will be used.

Also, if you wish, you can pass the ``languages`` argument in the ``@register`` decorator::
Also, if you wish, you can pass the ``languages`` argument in the ``register`` decorator::

from modeltranslation.translator import register, TranslationOptions
from news.models import News
Expand Down

0 comments on commit 023c102

Please sign in to comment.