mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: pages delete endpoint
This commit is contained in:
parent
edc1812ac0
commit
80d42c21dd
@ -327,7 +327,7 @@ class PageViewSet(BaseViewSet):
|
|||||||
|
|
||||||
# remove parent from all the children
|
# remove parent from all the children
|
||||||
_ = Page.objects.filter(
|
_ = 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)
|
).update(parent=None)
|
||||||
|
|
||||||
page.delete()
|
page.delete()
|
||||||
|
Loading…
Reference in New Issue
Block a user