Skip to content

Commit

Permalink
Fix two stray DEFAULT_LANGUAGEs
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Aug 31, 2017
1 parent 760b186 commit c627c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BlogTable(tables.Table):
class Meta:
model = Blog
fields = (
# this field should fallback to DEFAULT_LANGUAGE
# this field should fallback to LANGUAGE_CODE
'title_i18n',
'title_en',
'title_nl',
Expand Down
2 changes: 1 addition & 1 deletion modeltrans/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class MultilingualQuerySet(models.query.QuerySet):
- `<field>` allow getting/setting the default language
- ``<field>_<lang>`` (for example, `<field>_de`) allows getting/setting a specific language.
Note that if `DEFAULT_LANGUAGE == 'en'`, `<field>_en` is mapped to `<field>`.
Note that if `LANGUAGE_CODE == 'en'`, `<field>_en` is mapped to `<field>`.
- `<field>_i18n` follows the currently active translation in Django, and falls back to the default language.
When adding the `modeltrans.fields.TranslationField` to a model, MultilingualManager is automatically
Expand Down

0 comments on commit c627c42

Please sign in to comment.