From 54de562eac98c5237752b9e57fd376679b614981 Mon Sep 17 00:00:00 2001 From: Niall Date: Mon, 6 Mar 2017 20:19:39 +0000 Subject: [PATCH] Example for order_by being ignored --- graphene_django/tests/test_query.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/graphene_django/tests/test_query.py b/graphene_django/tests/test_query.py index 4553259..75eb8c8 100644 --- a/graphene_django/tests/test_query.py +++ b/graphene_django/tests/test_query.py @@ -488,18 +488,18 @@ def test_should_query_filter_node_limit(): ) def resolve_all_reporters(self, args, context, info): - return Reporter.objects.all() + return Reporter.objects.order_by('a_choice') - r = Reporter.objects.create( - first_name='John', - last_name='Doe', - email='johndoe@example.com', - a_choice=1 - ) Reporter.objects.create( first_name='Bob', last_name='Doe', email='bobdoe@example.com', + a_choice=2 + ) + r = Reporter.objects.create( + first_name='John', + last_name='Doe', + email='johndoe@example.com', a_choice=1 )