AttributeError: 'NoneType' object has no attribute '_meta'
See original GitHub issueI have simple graphene based django project: https://github.com/aliev/graphene-django-bug
For some reason when I’m trying to run server or make migrations I have an exception:
AttributeError: 'NoneType' object has no attribute '_meta'
I’m using model forms and DjangoModelFormMutation
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:17 (1 by maintainers)
Top Results From Across the Web
'NoneType' object has no attribute '_meta' - Stack Overflow
Python is trying to find the field _meta in self.model. When it says that NoneType does not have that attribute, it means that...
Read more >'NoneType' object has no attribute '_meta' in manage.py ...
In 1.10rc1 I get the following when running ./manage.py dumpdata auth.user --traceback :: [Traceback (most recent call last): File "./manage.py", line 11, ...
Read more >[Django] #21040: Bug in db/models/base.py, 'NoneType ...
AttributeError : 'NoneType' object has no attribute 'attname'. Because a model can be 'abstract = True' doesn't have a pk, but a form...
Read more >AttributeError : 'NoneType' object has no attribute '_meta'-django
Coding example for the question AttributeError : 'NoneType' object has no attribute '_meta'-django.
Read more >AttributeError: 'NoneType' object has no attribute '_meta'
Discussion: AttributeError: 'NoneType' object has no attribute '_meta' - during South migration. Dave E. 12 years ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue with the rest framework
SerializerMutation
I’ve narrowed it down to that I need to
import
only those types that have a relation (ForeignKey
orOneToOne
) to another type. Would you like me to provide a simple example to reproduce the issue, would that help?