We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5225f90 commit 9e076fcCopy full SHA for 9e076fc
src/common/metadata/serializers.py
@@ -66,7 +66,7 @@ def update_metadata(
66
67
content_type = ContentType.objects.get_for_model(instance.__class__)
68
69
- if len(metadata_data) == 0:
+ if metadata_data:
70
Metadata.objects.filter(
71
object_id=instance.pk, content_type=content_type
72
).delete()
0 commit comments