Cannot assign "(1,)": "" must be a "" instance. django code example
Example: ValueError: Cannot assign id must be an instance error python
new_team = Team(
nickname = team_name,
employee_id = employee_id,
department_id = Department.objects.get(password = password, department_name = department_name)
)