Django 1.6 compatibility

Django 1.6 is using get_queryset rather than get_query_set.  This commit fixes this, and still manages the support for earlier versions.