Fixed two issues arising when the backend is used against Django v1.5:

Namely:

+ 	get_grouping() argument list changed:
	in 1.5 it takes the `ordering_group_by` parameter

+	_DJANGO_VERSION was not set correctly in base.py