Fix select related for django 1.6.

The signature of django.db.models.sql.query.Query.join
changed in django 1.6 because of https://code.djangoproject.com/ticket/19385