Hi,
Try the following.
employee =self.request.POST.get('employee_id')
print(employee)
obj.employee= Employee.objects.filter(name=employee)
It will crash again, but you can see in the console if it's printing the id correctly.
I've assume this is a function, not a class view by the way that you are handling the query set. And I believe with the poor information that you give us, that the 'employee_id' isn't the right keyword to get the value desired.
Usually you can use the name in your models to refer to the field that you want the data. If you want the primary key, you should use pk of an existing record in the database.
Also you can print self.request.POST to see all the data that I has, that is a dictionary so you can see they keyword you need and the data in brings.
Regards.
Julio Cojom.