Skip to content

Commit

Permalink
fix SmartRelationshipsMixin to override exclude metadata
Browse files Browse the repository at this point in the history
jacquesfize committed Jan 29, 2024
1 parent dae7260 commit f627a16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils_flask_sqla/schema.py
Original file line number Diff line number Diff line change
@@ -72,4 +72,5 @@ def __init__(self, *args, **kwargs):
kwargs["only"] = only
if exclude:
kwargs["exclude"] = exclude
self.opts.exclude = set(self.opts.exclude) - set(firstlevel_only)
super().__init__(*args, **kwargs)

0 comments on commit f627a16

Please sign in to comment.