fix: page labels update (#532)
This commit is contained in:
parent
32ab7951f7
commit
69387ffd8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue