[prefetch_related] 역참조 이해하기

이영주·2020년 11월 22일
0

staff 에서 movie name 출력하기

related name로 중간테이블인 moviestaffposition를 역참조하기

여러개의 객체가 리스트 형태로 담겨있어 for문을 통해 name 출력하기

0개의 댓글