django 1.6 removes `dup_select_related`

`dup_select_related` was removed in 
https://github.com/django/django/commit/389892aae595b86c4be28c43e3312d76a68a0173 - replacing it with equivalent behavior here.