ValueError: Cannot assign id must be an instance error python 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)
)