Skip to content

Commit

Permalink
Fix column_property
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Jul 11, 2024
1 parent b0ae55a commit 4ef06e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sqladmin/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,11 @@ async def get_model_form(
attributes = []
names = only or mapper.attrs.keys()
for name in names:
if exclude and name in exclude:
if (
exclude
and name in exclude
or isinstance(mapper.attrs[name], MappedSQLExpression)
):
continue
attributes.append((name, mapper.attrs[name]))

Expand Down

0 comments on commit 4ef06e0

Please sign in to comment.