Open coler-j opened 3 years ago
Could you provide an example that makes this problem appear?
Here is an example that makes it to appear
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = models.User
fields = "__all__"
class AdminSerializer(serializers.ModelSerializer):
admin = UserSerializer(many=True)
class Meta:
model = models.OrganizationAdmin
fields = ('admin')
class AdminModelMutation(SerializerMutation):
class Meta:
serializer_class = AdminSerializer
ImportError: Could not import 'schema' for Graphene setting 'SCHEMA'. AttributeError: 'NoneType' object has no attribute '_meta'.
Running into similar issue to these issues:
This was supposed to be resolved in https://github.com/graphql-python/graphene-django/pull/395
I am on version
2.13.0
I have a nested serialized using
many=True
for the related serializer, everything saves fine, but on return I am getting:This seems to imply there is an issue with the return data.