mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-26 09:14:30 +03:00
Merge pull request #2635 from AsheKR/user-api-serializer-get-user-model
This commit is contained in:
commit
7a0ba0fa9d
|
@ -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`_
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user