liberation / django-elasticsearch

Simple wrapper around elasticsearch-py to index/search a django Model.
MIT License
211 stars 73 forks source link

Add reverse fk handling in the default serializer. #38

Open lauxley opened 8 years ago

lauxley commented 8 years ago
Atala commented 8 years ago

Do you plan to merge it soon? That would be nice.

lauxley commented 8 years ago

The only thing that still prevents me from merging is the RelatedManager on ManyToMany fields that complains when i try to fake the relationship on deserialization. I'm not sure what would be the best approach to the problem so i pushed my wip so far if someone has an idea and wants to look at it. The problem arises in serializers.EsJsonToModelMixin.instanciate()

maybe a custom manager on the related field would work ...