use `select_related(related_names)` instead of deprecated `select_related(depth=1)` (bug 1011676)
Merge pull request #2178 from cvan/1011676

use `select_related(related_names)` instead of deprecated `select_related(depth=1)` (bug 1011676)