Define a counter type column in django models using cql engine -


i have model counter type column below:

from cqlengine import columns cqlengine.models import model  class countview(model):     entrylink=columns.text(primary_key=true)     visited=columns.counter() 

but when want create table model below:

>>> cqlengine import connection >>> cqlengine.management import create_table >>> mainapp.models import countview 

i receive error:

traceback (most recent call last):   file "<console>", line 1, in <module>   file "h:/web-programming/python/project/prexter\mainapp\models.py", line 66, in <module> class countview(model):   file "h:/web-programming/python/project/prexter\mainapp\models.py", line 68, in countview visited=columns.counter()   file "h:\web-programming\python\project\prexter\virtual-environment\lib\site-packages\cqlengine\columns.py", line 421, in __init__ raise notimplementederror notimplementederror 

what wrong? how must define counter type column in model? please guide me...

sorry you're having trouble. haven't implemented counter columns in cqlengine yet, planning on adding 0.6 release.

thanks,

blake


Comments