Skip to content

0.2.3: fix: except_column failing with foreign keys

Compare
Choose a tag to compare
@artygo8 artygo8 released this 29 May 09:59
· 1 commit to main since this release

fix: except_column failing with foreign keys

Traceback (most recent call last):
  File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)
File "/home/agossuin/...", line 42, in my_class_view
    MyClass.st_crud_tabs(
  File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit_sqlalchemy/mixin.py", line 288, in st_crud_tabs
    cls.st_update_select_form(
  File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit_sqlalchemy/mixin.py", line 228, in st_update_select_form
    if selected_obj_to_update.st_update_form(
  File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit_sqlalchemy/mixin.py", line 582, in st_update_form
    kwargs[field] = kwargs[field].id
AttributeError: 'int' object has no attribute 'id'
  • small typehinting addition