‘function’ object has no attribute ‘__func__’ issue with graphene django

‘function’ object has no attribute ‘__func__’ issue with graphene django


0

TypeError: UserProcessOptionsNode fields cannot be resolved. 'function' object has no attribute '__func__'

class UserProcessOptionsNode(DjangoObjectType):
    client_configuration = GenericScalar()

    class Meta:
        model = api_models.UserProcessOptions
        interfaces = (relay.Node,)
        filter_fields = ("user",)

    @classmethod
    def get_queryset(cls, queryset, info):
        user_list = []
        user_list.append(info.context.user)
        user_list.append(info.context.user.parent_user)
        userprocess = queryset.filter(user__in=user_list)
        return userprocess

This issue is caused when I upgrade graphene-django from 2.15.0 to 3.1.5.

1

  • I fixed issue by degrading graphene-django to 3.1.3.

    – Atom

    49 mins ago



Load 4 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *