mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 01:27:01 +03:00
Associate {Big,Small}AutoField with GlobalIDFilter
This commit is contained in:
parent
882c433233
commit
840b699016
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue
Block a user