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
Adding the content element Container leads to the following exception:
TypeError at /de/admin/cms/page/add-plugin/
__str__ returned non-string (type __proxy__)
The reason for this is gettext_lazy returning a __proxy__ object instead of the actual string of the help_text fields.
Solution
Replacing gettext_lazy with gettext in djangocms_bootstrap4/contrib/bootstrap4_grid/models.py solves the problem.
This could have the side effect of not getting the correct translations of the help_text fields when creating a Container. But when I tested it on older versions (Django 3.1, django-cms 3.7.4, djangocms-bootstrap4 1.6.0) where the plugin still works, there were no translations either.
Screenshot
The text was updated successfully, but these errors were encountered:
Description
Django: 4.2
django-cms: 3.11.6
djangocms-bootstrap4: 3.0.1
Adding the content element Container leads to the following exception:
The reason for this is
gettext_lazy
returning a__proxy__
object instead of the actual string of thehelp_text
fields.Solution
Replacing
gettext_lazy
withgettext
indjangocms_bootstrap4/contrib/bootstrap4_grid/models.py
solves the problem.This could have the side effect of not getting the correct translations of the
help_text
fields when creating a Container. But when I tested it on older versions (Django 3.1, django-cms 3.7.4, djangocms-bootstrap4 1.6.0) where the plugin still works, there were no translations either.Screenshot
The text was updated successfully, but these errors were encountered: