r4fek / django-cassandra-engine

Django Cassandra Engine - the Cassandra backend for Django
BSD 2-Clause "Simplified" License
364 stars 85 forks source link

Compatibility with django-elasticsearch-dsl #137

Closed ammurdoch closed 3 years ago

ammurdoch commented 4 years ago

Added an iterator method to the DjangoCassandraQuerySet class.

Also added a check in the order_by method of the DjangoCassandraQuerySet class so instead of an exception, a warning is thrown when a the order_by method is called with django expressions instead of str column names.

These two changes allow us use use django-cassandra-engine with django-elasticsearch-dsl relatively seemlessly.