Make related query sets work on older django.

This supersedes https://github.com/carljm/django-model-utils/pull/106

(I couldn't figure out if I could add to that pull request or not).