Skip to content

Commit 4d41160

Browse files
committed
Update resolve method signature to 2.0 style in new test
1 parent e05fbcc commit 4d41160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/tests/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ class Query(graphene.ObjectType):
451451
# def resolve_all_reporters_with_berlin_films(self, args, context, info):
452452
# return Reporter.objects.filter(Q(films__film__location__contains="Berlin") | Q(a_choice=1))
453453

454-
def resolve_films(self, args, context, info):
454+
def resolve_films(self, info, **args):
455455
return Film.objects.filter(Q(details__location__contains="Berlin") | Q(genre__in=['ot'])).distinct()
456456

457457
f = Film.objects.create(

0 commit comments

Comments
 (0)