Open iddqd1 opened 5 years ago
class Data(DjangoCassandraModel): stream_name = columns.Text(primary_key=True, partition_key=True, max_length=10) date = columns.Date(primary_key=True, partition_key=True) id = columns.UUID(primary_key=True, default=uuid.uuid4) created = columns.DateTime(primary_key=True) stream_type = columns.Text(max_length=10, required=True) text = columns.Text(required=True) class Meta: get_pk_field = 'id' # admin from django.contrib import admin from .models import Data @admin.register(Data) class DataAdmin(admin.ModelAdmin): list_display = ['id', 'stream_name', 'date', 'created'] # list_filter = ['date', 'stream_type'] search_fields = ['text']
django_cassandra_engine/models/init.py", line 351, in zip(partition_keys.keys(), val))
django_cassandra_engine/models/init.py", line 351, in
zip(partition_keys.keys(), val))