forked from github/plane
fix: page labels update (#532)
This commit is contained in:
parent
32ab7951f7
commit
69387ffd8c
@ -67,7 +67,7 @@ class PageSerializer(BaseSerializer):
|
|||||||
def update(self, instance, validated_data):
|
def update(self, instance, validated_data):
|
||||||
labels = validated_data.pop("labels_list", None)
|
labels = validated_data.pop("labels_list", None)
|
||||||
if labels is not None:
|
if labels is not None:
|
||||||
PageLabel.objects.filter(issue=instance).delete()
|
PageLabel.objects.filter(page=instance).delete()
|
||||||
PageLabel.objects.bulk_create(
|
PageLabel.objects.bulk_create(
|
||||||
[
|
[
|
||||||
PageLabel(
|
PageLabel(
|
||||||
|
Loading…
Reference in New Issue
Block a user