You are using ModalSerilizer here as I see, So you don't need to add id field explicitly in serializer. only the fields you want to customize should be there in serializer field while working with ModalSerilizer class