QueryException Token values len

I assume these two have to be swapped, otherwise it doesn't make much sense.
This commit is contained in:
Niklas Korz
2014-02-11 18:53:09 +01:00
parent 79fc15ecd8
commit a2c7a547ee

View File

@@ -385,7 +385,7 @@ class AbstractQuerySet(object):
if len(partition_columns) != len(val.value):
raise QueryException(
'Token() received {} arguments but model has {} partition keys'.format(
len(partition_columns), len(val.value)))
len(val.value), len(partition_columns)))
val.set_columns(partition_columns)
#get query operator, or use equals if not supplied