Answers for "django rest framework encrypt passwors"

0

django rest framework encrypt passwors

from rest_framework.serializers import ModelSerializer
from django.contrib.auth.hashers import make_password


class UserSerializer(ModelSerializer):
    class Meta:
        model = backend.models.User
        fields = ('username', 'email', 'password',)

    validate_password = make_password
Posted by: Guest on May-19-2020

Code answers related to "django rest framework encrypt passwors"

Python Answers by Framework

Browse Popular Code Answers by Language