17👍
You should simply add the professor as you did with the author:
serializer.save(
author=self.request.user,
professor_id=self.kwargs.get('pk'),
)
Note that in order to avoid to pull the professor from the DB, I set the FK explicitly instead.
Source:stackexchange.com