From 7ebe59bfb2ec9611f7d36d55b0bad6c6216d520a Mon Sep 17 00:00:00 2001 From: cph Date: Sat, 22 Oct 2016 15:02:10 +0800 Subject: [PATCH] fix order_by_field bug --- graphene_django/filter/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/filter/fields.py b/graphene_django/filter/fields.py index bd4b44d..3a02ec3 100644 --- a/graphene_django/filter/fields.py +++ b/graphene_django/filter/fields.py @@ -14,7 +14,7 @@ class DjangoFilterConnectionField(DjangoConnectionField): self.fields = fields or type._meta.filter_fields meta = dict(model=type._meta.model, fields=self.fields, - order_by=self.order_by) + order_by_field=self.order_by) if extra_filter_meta: meta.update(extra_filter_meta) self.filterset_class = get_filterset_class(filterset_class, **meta)