AssertionError: You need to pass a valid Django Model in UserProfile.Meta, received “None”
问题 I'm adding Django Model to a graphql api using the AbstractBaseUser custom user model. The Admin works fine except that I get an error when trying to access the graphql api, 'You need to pass a valid Django Model in UserProfile.Meta, received "None"' I've tried adding AUTH_USER_MODEL = 'noxer_app.MyUser' to settings, yet it doesn't work In models.py: from django.db import models from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) class MyUserManager(BaseUserManager):