yunojuno/elasticsearch-django

Unable to get repr for <class 'django_elasticsearch.query.EsQueryset'>

mugbya opened this issue · 2 comments

hi, I wrote test code

from django_elasticsearch.models import EsIndexable

class UserInfoSE(EsIndexable, models.Model):
    tel = models.CharField(max_length=50, null=True, unique=False, default='')

UserInfoSE.es.queryset.all()

and settings:

ELASTICSEARCH_AUTO_INDEX = True
ELASTICSEARCH_URL = 'http://192.168.99.101:9200'

but I got some error: Unable to get repr for <class 'django_elasticsearch.query.EsQueryset'>

@mugbya where have you go EsIndexable from, and what is UserInfoSE.es.queryset?

I'm terribly sorry. I was wrong