Skip to content
Snippets Groups Projects
Commit 773ecdbc authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Fix act-edit descending query

parent 4174399d
No related branches found
No related tags found
1 merge request!52Rolling cache db
......@@ -93,8 +93,7 @@ class ActEdit(RetrieveAPIView):
def get_object(self):
act = super().get_object()
act.parent_elements = Element.objects.get_ascending_paths(act.id)
act.child_elements = Element.objects.get_descending(act.id).exclude(
paths__element__type=ElementType.Transcription)
act.child_elements = Element.objects.get_descending(act.id).exclude(type=ElementType.Transcription)
return act
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment