Adds django-haystack 2 compatibility.