barseghyanartur / django-fobi

Form generator/builder application for Django done right: customisable, modular, user- and developer- friendly.
https://pypi.python.org/pypi/django-fobi
485 stars 112 forks source link

can only concatenate list (not "tuple") to list on python 3.10.6 and django 4.1 #277

Closed ameenalakhras closed 1 year ago

ameenalakhras commented 1 year ago

running the latest package version (0.9.4) with python 3.10.6 and django 4.1 raised an error when strting the django server

File "/someproject/venv/lib/python3.10/site-packages/fobi/admin.py", line 651, in class FormWizardHandlerAdmin(BasePluginModelAdmin): File "someproject/venv/lib/python3.10/site-packages/fobi/admin.py", line 654, in FormWizardHandlerAdmin actions = [ TypeError: can only concatenate list (not "tuple") to list

it seems django actions is a tuple and django-fobi uses list in actions, combining the two raises the error "TypeError: can only concatenate list (not "tuple") to list " a solution would be make the django-tobi action as tuple to solve the issue

it seems like it happens in multiple lines in the fobi/admin.py file, converting them to tuple solved my issue.

barseghyanartur commented 1 year ago

Django 4.1 is not yet supported. Will be soon.

barseghyanartur commented 1 year ago

Superseded by https://github.com/barseghyanartur/django-fobi/issues/278