Make get_table_settings use CL.ONE explicitly
This commit is contained in:
@@ -239,8 +239,9 @@ def get_fields(model):
|
|||||||
|
|
||||||
|
|
||||||
def get_table_settings(model):
|
def get_table_settings(model):
|
||||||
return schema_columnfamilies.get(keyspace_name=model._get_keyspace(),
|
return schema_columnfamilies.objects.consistency(ONE).get(
|
||||||
columnfamily_name=model.column_family_name(include_keyspace=False))
|
keyspace_name=model._get_keyspace(),
|
||||||
|
columnfamily_name=model.column_family_name(include_keyspace=False))
|
||||||
|
|
||||||
|
|
||||||
def update_compaction(model):
|
def update_compaction(model):
|
||||||
|
|||||||
@@ -318,6 +318,11 @@ class AbstractQuerySet(object):
|
|||||||
def all(self):
|
def all(self):
|
||||||
return copy.deepcopy(self)
|
return copy.deepcopy(self)
|
||||||
|
|
||||||
|
def consistency(self, consistency):
|
||||||
|
clone = copy.deepcopy(self)
|
||||||
|
clone._consistency = consistency
|
||||||
|
return clone
|
||||||
|
|
||||||
def _parse_filter_arg(self, arg):
|
def _parse_filter_arg(self, arg):
|
||||||
"""
|
"""
|
||||||
Parses a filter arg in the format:
|
Parses a filter arg in the format:
|
||||||
@@ -626,11 +631,6 @@ class ModelQuerySet(AbstractQuerySet):
|
|||||||
clone._flat_values_list = flat
|
clone._flat_values_list = flat
|
||||||
return clone
|
return clone
|
||||||
|
|
||||||
def consistency(self, consistency):
|
|
||||||
clone = copy.deepcopy(self)
|
|
||||||
clone._consistency = consistency
|
|
||||||
return clone
|
|
||||||
|
|
||||||
def ttl(self, ttl):
|
def ttl(self, ttl):
|
||||||
clone = copy.deepcopy(self)
|
clone = copy.deepcopy(self)
|
||||||
clone._ttl = ttl
|
clone._ttl = ttl
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -18,7 +18,7 @@ Cassandra CQL 3 Object Mapper for Python
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='cqlengine',
|
name='cqlengine',
|
||||||
version=version,
|
version='0.9.2-2951ba35de1fc7213121a9b45b7ff679d543c5d3',
|
||||||
description='Cassandra CQL 3 Object Mapper for Python',
|
description='Cassandra CQL 3 Object Mapper for Python',
|
||||||
long_description=long_desc,
|
long_description=long_desc,
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
|||||||
Reference in New Issue
Block a user