mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-23 07:00:59 +03:00
Remove unused path
This commit is contained in:
parent
fba274dc4d
commit
84ba7d775a
|
@ -293,19 +293,6 @@ class DjangoConnectionField(ConnectionField):
|
||||||
iterable = default_manager
|
iterable = default_manager
|
||||||
# thus the iterable gets refiltered by resolve_queryset
|
# thus the iterable gets refiltered by resolve_queryset
|
||||||
# but iterable might be promise
|
# but iterable might be promise
|
||||||
|
|
||||||
if is_running_async():
|
|
||||||
|
|
||||||
async def perform_resolve(iterable):
|
|
||||||
iterable = await sync_to_async(queryset_resolver)(
|
|
||||||
connection, iterable, info, args
|
|
||||||
)
|
|
||||||
return await sync_to_async(cls.resolve_connection)(
|
|
||||||
connection, args, iterable, max_limit=max_limit
|
|
||||||
)
|
|
||||||
|
|
||||||
return perform_resolve(iterable)
|
|
||||||
|
|
||||||
iterable = queryset_resolver(connection, iterable, info, args)
|
iterable = queryset_resolver(connection, iterable, info, args)
|
||||||
return cls.resolve_connection(connection, args, iterable, max_limit=max_limit)
|
return cls.resolve_connection(connection, args, iterable, max_limit=max_limit)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user