amisadmin / fastapi-amis-admin

FastAPI-Amis-Admin is a high-performance, efficient and easily extensible FastAPI admin framework. Inspired by django-admin, and has as many powerful functions as django-admin.
http://docs.amis.work
Apache License 2.0
1.09k stars 161 forks source link

启动报错AttributeError: secondary #157

Open huangjunyingnb opened 10 months ago

huangjunyingnb commented 10 months ago

Traceback (most recent call last): File "/root/.pycharm_helpers/pydev/pydevd.py", line 1534, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/root/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/dandan_wallet/dev_run_admin.py", line 70, in site.mount_app(app) File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1452, in mount_app self.register_router() File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1348, in register_router self._register_admin_router_all() File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1340, in _register_admin_router_all admin.register_router() File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1347, in register_router self._register_admin_router_all_pre() File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1335, in _register_admin_router_all_pre [admin.get_link_model_forms() for admin in self._registered.values() if isinstance(admin, ModelAdmin)] File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 1335, in [admin.get_link_model_forms() for admin in self._registered.values() if isinstance(admin, ModelAdmin)] File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 660, in get_link_model_forms [LinkModelForm.bind_model_admin(self, insfield) for insfield in self.link_model_fields], File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 660, in [LinkModelForm.bind_model_admin(self, insfield) for insfield in self.link_model_fields], File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/fastapi_amis_admin/admin/admin.py", line 116, in bind_model_admin table = insfield.prop.secondary File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 1335, in getattr return self._fallback_getattr(key) File "/home/dandan_wallet/dandan_env/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 1304, in _fallback_getattr raise AttributeError(key) AttributeError: secondary

fastapi-user-auth==0.5.0 fastapi-amis-admin==0.5.8