We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c741fa commit 968ed97Copy full SHA for 968ed97
2 files changed
src/odin/filtering.py
@@ -8,9 +8,7 @@
8
9
10
class FilterAtom(abc.ABC):
11
- """
12
- Base filter statement
13
+ """Base filter statement"""
14
15
__slots__ = ()
16
src/odin/resources.py
@@ -171,7 +171,9 @@ def composite_fields(self) -> Sequence[Field]:
171
"""All composite fields."""
172
# Not the nicest solution but is a fairly safe way of detecting a composite field.
173
return tuple(
174
- f for f in self.fields if (hasattr(f, "of") and issubclass(f.of, Resource))
+ f
175
+ for f in self.fields
176
+ if (hasattr(f, "of") and issubclass(f.of, ResourceBase))
177
)
178
179
@cached_property
0 commit comments