Closed toopy closed 9 years ago
It feels awkward. I'll think about this and see if I can think of alternative options.
Sorry my django project is still private for now. I try to make it public asap then it should help for your thinking ;)
It's ok, I just found another way to do it:
But I really need #272 this feature in a comming release ;)
We would like to do some magic like indexing django related field implicitly like in this demo mapping: https://github.com/novapost/django-esutils/blob/master/demo/demo_esutils/mappings.py#L13
Then the BaseMappingType do the job: https://github.com/novapost/django-esutils/blob/master/django_esutils/mappings.py#L98
But to do that, we need to hack the current
split_field_action
method (cf.: this PR). What do you think about that ? Or is there another way to do it ?