diff --git a/hooks.py b/hooks.py index 9e877d975a94509f3c6a22e9e0d7d033e0a56589_aG9va3MucHk=..88bf524c4346cea2b229d296108f3fd42770ac22_aG9va3MucHk= 100644 --- a/hooks.py +++ b/hooks.py @@ -99,10 +99,6 @@ # kwargs below must be container data. kwargs['id'] = json['eid'] kwargs['doc_type'] = getattr(serializer, 'doc_type', json['cw_etype']) - if json.get('parent'): - kwargs['parent'] = json.pop('parent') - else: # TODO only for types that have parents - kwargs['routing'] = entity.eid try: # TODO option for async ? es.index(**kwargs)