Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save Page that was inherited from wagtail.models.Page but doesn't registered with modeltranslation #423

Open
Akay7 opened this issue May 5, 2024 · 0 comments

Comments

@Akay7
Copy link

Akay7 commented May 5, 2024

Unable to save Page that was inherited from Wagtail Page but doesn't registered with modeltranslation

I have an application blog that have two Models:

  1. BlogIndexPage(Page) that registered with modeltranslation.decorators.register at translation.py
  2. BlogPage(Page) - doesn't have versions for different languages. And doesn't registered with decorator. Each blog post will have own language and sometimes will never translated to any other languages. Or will translated by another author.

I got an issue that I'm not able to save BlogPage at wagtail because title is required.

Seems the problem related to patching Page at here:

@register(Page)
class PageTR(TranslationOptions):

In my opinion it should be opportunity to inherit from wagtail.models.Page both type of pages that should be translated that doesn't required translations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant