Replace User by get_user_model

This commit is contained in:
Gil 2020-06-21 16:13:42 +09:00
parent d2e9e8ee3f
commit 88f9a6c289

View File

@ -1,6 +1,7 @@
from django.contrib.auth import get_user_model
from rest_framework import serializers
from {{ cookiecutter.project_slug }}.users.models import User
User = get_user_model()
class UserSerializer(serializers.ModelSerializer):