Unified the use of assignment_id / pk in assignment views