You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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...
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:
Any suggestion on how this can be sorted?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: