fixes to make django google search work for django 1.5