From 69387ffd8c284b3438eab526f2ec8098a1c1bfff Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:57:06 +0530 Subject: [PATCH] fix: page labels update (#532) --- apiserver/plane/api/serializers/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/api/serializers/page.py b/apiserver/plane/api/serializers/page.py index c4a803e7e..c7f9f0264 100644 --- a/apiserver/plane/api/serializers/page.py +++ b/apiserver/plane/api/serializers/page.py @@ -67,7 +67,7 @@ class PageSerializer(BaseSerializer): def update(self, instance, validated_data): labels = validated_data.pop("labels_list", None) if labels is not None: - PageLabel.objects.filter(issue=instance).delete() + PageLabel.objects.filter(page=instance).delete() PageLabel.objects.bulk_create( [ PageLabel(