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

https://bugzilla.mozilla.org/show_bug.cgi?id=1023010