fix: pages delete endpoint

This commit is contained in:
pablohashescobar 2024-06-14 16:39:01 +05:30
parent edc1812ac0
commit 80d42c21dd

View File

@ -327,7 +327,7 @@ class PageViewSet(BaseViewSet):
# remove parent from all the children
_ = Page.objects.filter(
parent_id=pk, project_id=project_id, workspace__slug=slug
parent_id=pk, projects__id=project_id, workspace__slug=slug
).update(parent=None)
page.delete()