Added Django 1.7 support into Elasticsearch query building