backend/users/serializers.py
def update(self, instance, validated_data):
        """
        This method is responsible for encrypting the user's password before a update in the password field.
        """
        if validated_data.get('password') is not None:
            validated_data['password'] = make_password(validated_data['password'])
        return super(UsersSerializer, self).update(instance, validated_data)

        This method is responsible for encrypting the user's password before a update in the password field.
        
This method is responsible for encrypting the user's password before a update in the password field.
This method is responsible for encrypting the user ' s password before a update in the password field .
def update(self, instance, validated_data):
        if validated_data.get('password') is not None:
            validated_data['password'] = make_password(validated_data['password'])
        return super(UsersSerializer, self).update(instance, validated_data)
def update ( self , instance , validated_data ) : if validated_data . get ( 'password' ) is not None : validated_data [ 'password' ] = make_password ( validated_data [ 'password' ] ) return super ( UsersSerializer , self ) . update ( instance , validated_data )
This method is responsible for encrypting the user's password before a update in the password field.
This method is responsible for encrypting the user ' s password before a update in the password field .
"""
        This method is responsible for encrypting the user's password before a update in the password field.
        """
self
instance
validated_data