Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #17

Merged
merged 24 commits into from
Mar 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix AttributeError
  • Loading branch information
LuisLuii committed Mar 5, 2022
commit 22c651875ddf456767773d2780f77faae59edcac
2 changes: 1 addition & 1 deletion src/fastapi_quickcrud/misc/schema_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def _extra_foreign_table_from_declarative_base(self, model) -> Dict[str, Table]:
reference_column_ = str(column).split('.')[1]
reference_table_instance_ = column.table

self.reference_mapper[local_column_] = {"foreign_table": foreign_table,
reference_mapper[local_column_] = {"foreign_table": foreign_table,
"foreign_table_name": foreign_table_name}
local_reference_pairs.append({'local': {"local_table": local_table_,
"local_column": local_column_},
Expand Down