Skip to content

Commit dbd362c

Browse files
authored
Return registry placeholder for BaseModel
1 parent 617089d commit dbd362c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graphene_pydantic/converters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ def find_graphene_type(
208208
# we can put a placeholder in and request that `resolve_placeholders()`
209209
# be called to update it.
210210
registry.add_placeholder_for_model(type_)
211+
return find_graphene_type(
212+
type_, field, registry, parent_type=parent_type, model=model
213+
)
211214
# NOTE: this has to come before any `issubclass()` checks, because annotated
212215
# generic types aren't valid arguments to `issubclass`
213216
elif hasattr(type_, "__origin__"):

0 commit comments

Comments
 (0)