from users.imports.serializers import BUpdateSC as Parent

from users.models import UserModel


class UserUpdateSerializer(Parent):
    class Meta(Parent.Meta):
        model = UserModel
        fields = [
            'id',
            'profile_image',
            'username',
            'password',
            'first_name',
            'last_name',
            'email_address',
            'roles',
            'date_joined',
        ]
        extra_kwargs = {
            'password': {'write_only': True}
        }
        read_only_fields = ['roles', ]
