Skip to content

Commit 9e076fc

Browse files
Zaimwa9khvn26
andauthored
Update src/common/metadata/serializers.py
Co-authored-by: Kim Gustyr <[email protected]>
1 parent 5225f90 commit 9e076fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/metadata/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def update_metadata(
6666

6767
content_type = ContentType.objects.get_for_model(instance.__class__)
6868

69-
if len(metadata_data) == 0:
69+
if metadata_data:
7070
Metadata.objects.filter(
7171
object_id=instance.pk, content_type=content_type
7272
).delete()

0 commit comments

Comments
 (0)