From 840b6990165e34b22d4c95f57fed4a7d359a9ab1 Mon Sep 17 00:00:00 2001 From: Thad Fleming Date: Thu, 1 Feb 2024 15:55:22 +0000 Subject: [PATCH] Associate {Big,Small}AutoField with GlobalIDFilter --- graphene_django/filter/filterset.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphene_django/filter/filterset.py b/graphene_django/filter/filterset.py index 7e0d0c5..78af9cf 100644 --- a/graphene_django/filter/filterset.py +++ b/graphene_django/filter/filterset.py @@ -11,6 +11,8 @@ from .filters import GlobalIDFilter, GlobalIDMultipleChoiceFilter GRAPHENE_FILTER_SET_OVERRIDES = { models.AutoField: {"filter_class": GlobalIDFilter}, + models.BigAutoField: {"filter_class": GlobalIDFilter}, + models.SmallAutoField: {"filter_class": GlobalIDFilter}, models.OneToOneField: {"filter_class": GlobalIDFilter}, models.ForeignKey: {"filter_class": GlobalIDFilter}, models.ManyToManyField: {"filter_class": GlobalIDMultipleChoiceFilter},