tern: select_related some things to improve performance