Skip to content

Commit

Permalink
fix fully loading reflected
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 21, 2025
1 parent e0a183e commit f6595e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edgy/core/db/models/mixins/row.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ async def from_sqla_row(

# Check for the only_fields
# Pull out the regular column values.
class_columns = cls.table.columns
for column in table_columns:
if (
only_fields
Expand All @@ -183,7 +184,8 @@ async def from_sqla_row(
continue
if column.key in secret_columns:
continue
if column.key not in cls.meta.columns_to_field:
if column.key not in class_columns:
# for supporting reflected we cannot use columns_to_field
continue
# set if not of an foreign key with one column
if column.key in item:
Expand Down

0 comments on commit f6595e4

Please sign in to comment.