Merge pull request #2635 from AsheKR/user-api-serializer-get-user-model

This commit is contained in:
Bruno Alla 2020-06-21 14:13:40 +01:00 committed by GitHub
commit 7a0ba0fa9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,7 @@ Listed in alphabetical order.
Anuj Bansal `@ahhda`_
Arcuri Davide `@dadokkio`_
Areski Belaid `@areski`_
AsheKR `@ashekr`_
Ashley Camba
Barclay Gauld `@yunti`_
Bartek `@btknu`_

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):