Knotis / djangocassandra

Cassandra support for the Django web framework
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Cannot apply update to primary key on new row insert #80

Closed N3TC4T closed 8 years ago

N3TC4T commented 8 years ago

Hi my friend when I set partition_keys and clustering_keys in my model and my db schema I get this error but with a simple primary key I don't have problem

Cannot apply update to primary key "" cassandra/cqlengine/query.py in update, line 977

it's look like we insert our records via update command and for this we should use dummy primary key ?

N3TC4T commented 8 years ago

sorry I've forget to use ColumnFamilyModel