Fix django version check in get_ordering

This fixes a version check in get_ordering that will probably break on all versions of Django that aren't x.1.5 or earlier.