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

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