Skip to content

Commit

Permalink
incode documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Oct 13, 2024
1 parent 8daf781 commit d01437c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions edgy/core/db/models/mixins/row.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ async def from_sqla_row(
detail=f'Selected field "{field_name}" is not a RelationshipField on {cls}.'
) from None

# stop selecting when None. Related models are not available.
if not model_class._can_load_from_row(
row,
tables_and_models[
Expand Down
1 change: 1 addition & 0 deletions tests/exclude_secrets/test_exclude_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def create_test_database():
await models.drop_all()


# FIXME: test is flaky
async def test_exclude_secrets_excludes_top_name_equals_to_name_in_foreignkey_not_secret():
profile = await Profile.query.create(is_enabled=False, name="edgy")
user = await User.query.create(
Expand Down

0 comments on commit d01437c

Please sign in to comment.