Skip to content

Commit

Permalink
Added missing unpacking of strawberry.LazyType to _get_model_hints_fr…
Browse files Browse the repository at this point in the history
…om_paginated.
  • Loading branch information
NT-Timm committed Dec 6, 2024
1 parent 745b7f2 commit c3565b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions strawberry_django/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,10 @@ def _get_model_hints_from_paginated(
store = None

n_type = object_definition.type_var_map.get("NodeType")

if isinstance(n_type, LazyType):
n_type = n_type.resolve_type()

n_definition = get_object_definition(n_type, strict=True)
n_gql_definition = _get_gql_definition(
schema,
Expand Down

0 comments on commit c3565b0

Please sign in to comment.