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

Problems with installation over existing wagtail and multilanguage #236

Closed
jmponce84 opened this issue Dec 22, 2020 · 2 comments
Closed

Comments

@jmponce84
Copy link

Hi.

I'm trying to install Puput on an existing installation of Wagtail with multilanguage. However, I'm having problems once I try to run the migrations:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/core/management/base.py", line 368, in execute
    self.check()
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/core/management/base.py", line 396, in check
    databases=databases,
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/core/checks/registry.py", line 70, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/wagtail/admin/checks.py", line 63, in get_form_class_check
    if not issubclass(edit_handler.get_form_class(), WagtailAdminPageForm):
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/wagtail/admin/edit_handlers.py", line 355, in get_form_class
    widgets=self.widget_overrides())
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/wagtail/admin/edit_handlers.py", line 62, in get_form_for_model
    return metaclass(class_name, (form_class,), form_class_attrs)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/wagtail/admin/forms/models.py", line 75, in __new__
    new_class = super(WagtailAdminModelFormMetaclass, cls).__new__(cls, name, bases, attrs)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/modelcluster/forms.py", line 234, in __new__
    new_class = super(ClusterFormMetaclass, cls).__new__(cls, name, bases, attrs)
  File "/opt/ccike/website/venv/lib/python3.7/site-packages/django/forms/models.py", line 268, in __new__
    raise FieldError(message)
django.core.exceptions.FieldError: Unknown field(s) (seo_title_fr, slug_en, search_description_en, seo_title_nl, slug_nl, slug_es, seo_title_en, seo_title_es, search_description_de, slug_de, search_description_es, seo_title_de, slug_fr, search_description_nl, search_description_fr) specified for BlogPage

Any suggestion on how this can be sorted?

Thank you very much in advance!

@jmponce84
Copy link
Author

jmponce84 commented Dec 22, 2020

Ok, I think I sorted it. In the translation.py file is just a matter of importing BlogPage with from puput.models import BlogPage and then adding the desired fields to be translated as usual. Or at least this is how I believe is sorted...

@bashu
Copy link
Collaborator

bashu commented Nov 1, 2021

Wow, @jmponce84 ! Great moves. Keep it up!

@bashu bashu closed this as completed Nov 1, 2021
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

2 participants