Replies: 5 comments
-
Ok, this seems to be a bug! When I copy all my types above my mutation class, I don't get this error. Took me about 5h to find this out... 😱 I added the types manually to the schema like this:
But no effect. |
Beta Was this translation helpful? Give feedback.
-
django-graphene is trying to import your schema file and is encountering another error along the way. I would recommend doing a |
Beta Was this translation helpful? Give feedback.
-
Ok, now I found the issue! I need to import above my mutation the
So this is really a bug. |
Beta Was this translation helpful? Give feedback.
-
Aaaaaaaaaaaaaaaaad I found the solution:
I'm going to add this to the documentation :) |
Beta Was this translation helpful? Give feedback.
-
For me, this was occurring when I created a class CreatePersonMutation(DjangoModelFormMutation):
class Meta:
form_class = PersonForm
ok = graphene.Boolean(required=True) I was able to fix it just be defining a class PersonType(DjangoObjectType):
class Meta:
model = Person |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I try to use the awesome
DjangoModelFormMutation
but when I add the mutation to the schema I always get this error:Could not import 'project.config.schema.schema' for Graphene setting 'SCHEMA'. AttributeError: 'NoneType' object has no attribute '_meta'.
Here's my setup:
Any ideas what I might be doing wrong?
Thanks!
Ron
Beta Was this translation helpful? Give feedback.
All reactions