Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphene-django-optimizer-reloaded
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
graphene-django-optimizer-reloaded
Commits
f63b7317
Unverified
Commit
f63b7317
authored
5 years ago
by
Marcin Gębala
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #32 from dex4er/graphene-django-v2.6.0
Compatibility with graphene-django v2.6.0
parents
48db2b2a
da61d4db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
graphene_django_optimizer/query.py
+2
-1
2 additions, 1 deletion
graphene_django_optimizer/query.py
with
2 additions
and
1 deletion
graphene_django_optimizer/query.py
+
2
−
1
View file @
f63b7317
...
...
@@ -273,8 +273,9 @@ class QueryOptimizer(object):
resolver_fn
=
resolver
if
resolver_fn
.
func
==
DjangoListField
.
list_resolver
:
resolver_fn
=
resolver_fn
.
args
[
0
]
if
resolver_fn
.
func
==
default_resolver
:
if
isinstance
(
resolver_fn
,
functools
.
partial
)
and
resolver_fn
.
func
==
default_resolver
:
return
resolver_fn
.
args
[
0
]
return
resolver_fn
def
_is_resolver_for_id_field
(
self
,
resolver
):
resolve_id
=
DjangoObjectType
.
resolve_id
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment