Open Eraldo opened 1 month ago
When a Django model has the order_with_respect_to property set to a tuple of fields, the DjangoOptimizerExtension throws the following error:
order_with_respect_to
DjangoOptimizerExtension
"message": "maximum recursion depth exceeded in comparison",
Update: Only happens if the model inherits from: OrderedModel: https://github.com/django-ordered-model/django-ordered-model
OrderedModel
Reproduction: https://github.com/Eraldo/strawberry-django-optimizer-infinite-recursion-mre
strawberry-graphql-django = "^0.41.1" strawberry-graphql = "^0.232.2"
Describe the Bug
When a Django model has the
order_with_respect_to
property set to a tuple of fields, theDjangoOptimizerExtension
throws the following error:Update: Only happens if the model inherits from:
OrderedModel
: https://github.com/django-ordered-model/django-ordered-modelReproduction: https://github.com/Eraldo/strawberry-django-optimizer-infinite-recursion-mre
System Information
Upvote & Fund