Skip to content

Commit eb8087a

Browse files
committed
Update schema to use class reference instead of string
1 parent 712c20e commit eb8087a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-vue-graphql/backend/blog/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import graphene
2-
from django.contrib.auth.models import User
2+
from django.contrib.auth import get_user_model
33
from graphene_django import DjangoObjectType
44

55
from blog import models
66

77

88
class UserType(DjangoObjectType):
99
class Meta:
10-
model = User
10+
model = get_user_model()
1111

1212

1313
class AuthorType(DjangoObjectType):

0 commit comments

Comments
 (0)