Skip to content

[BUG] When adding another language, "Inherit the template of the nearest ancestor" is set as default template #8081

@aacimov

Description

@aacimov

Description

I added a new language in my settings.py, English in my case, since Croatian is the default. When I translate my pages from Croatian to English the template is automatically set to "Inherit the template of the nearest ancestor" instead of respecting the template selected in my default language.

Steps to reproduce

  1. Add a new language in settings.py
  2. Go to Django admin - Django CMS (Page Contents) - Select a new language from the dropdown
  3. Fill in the Title translation and save
  4. Template does not get copied from the default language so you have to set all the page templates again for all the new languages added

Expected behaviour

  1. Add a new language in settings.py
  2. Go to Django admin - Django CMS (Page Contents) - Select a new language from the dropdown
  3. Fill in the Title translation and save
  4. Template from the default language gets copied to the newly translated page

Actual behaviour

The template is automatically set to "Inherit the template of the nearest ancestor" instead the one preselected on the default language.

Screenshots

Original language template:

Screenshot 2024-11-21 at 09 42 30

When language is translated:

Screenshot 2024-11-21 at 09 42 35

Additional information (CMS/Python/Django versions)

Django 5.1.3
Django CMS 4.1.4
Python 3.10
Django Modeltranslation 0.19.11
MySQL 8 DB

Do you want to help fix this issue?

  • Yes, I want to help fix this issue and I will join the channel #pr-reviews on the Discord Server to confirm with the community that a PR is welcome.
  • No, I only want to report the issue.

Metadata

Metadata

Assignees

Labels

5.0djangonautsIssues for the djangonaut space team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions