From fbb1cec10a4d6ecf78977911dcf91dd8ee5598a3 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 12 Sep 2023 08:02:31 +0300 Subject: [PATCH] Update api/api/serializers/media_serializers.py Co-authored-by: Staci Mullins <63313398+stacimc@users.noreply.github.com> --- api/api/serializers/media_serializers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/api/serializers/media_serializers.py b/api/api/serializers/media_serializers.py index 45f199bc1a7..bc4a7177c59 100644 --- a/api/api/serializers/media_serializers.py +++ b/api/api/serializers/media_serializers.py @@ -426,10 +426,7 @@ def validate_source(self, value): def validate(self, data): data = super().validate(data) if "creator" in self.initial_data and "source" not in self.initial_data: - raise serializers.ValidationError( - "Cannot set `source` without `creator`. " - "Use both of these or neither of them." - ) + raise serializers.ValidationError("Cannot set `creator` without `source`. ") if not data.get("source") and not data.get("creator") and not data.get("tag"): raise serializers.ValidationError( "At least one of `source`, `creator` or `tag` must be "