We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7210e30 commit 2117cb2Copy full SHA for 2117cb2
graphene_django/tests/test_query.py
@@ -488,18 +488,18 @@ class Query(graphene.ObjectType):
488
)
489
490
def resolve_all_reporters(self, args, context, info):
491
- return Reporter.objects.all()
+ return Reporter.objects.order_by('a_choice')
492
493
- r = Reporter.objects.create(
494
- first_name='John',
495
- last_name='Doe',
496
- email='johndoe@example.com',
497
- a_choice=1
498
- )
499
Reporter.objects.create(
500
first_name='Bob',
501
last_name='Doe',
502
email='bobdoe@example.com',
+ a_choice=2
+ )
+ r = Reporter.objects.create(
+ first_name='John',
+ last_name='Doe',
+ email='johndoe@example.com',
503
a_choice=1
504
505
0 commit comments