Making celery_haystack work with non-integer primary keys.