diff --git a/apps/applications/serializers/attrs/application_category/remote_app.py b/apps/applications/serializers/attrs/application_category/remote_app.py index c50fd9364..11042049e 100644 --- a/apps/applications/serializers/attrs/application_category/remote_app.py +++ b/apps/applications/serializers/attrs/application_category/remote_app.py @@ -40,6 +40,11 @@ class RemoteAppSerializer(serializers.Serializer): max_length=128, label=_('Application path'), allow_null=True ) + def validate_asset(self, asset): + if not asset: + raise serializers.ValidationError(_('This field is required')) + return asset + @staticmethod def get_asset_info(obj): asset_id = obj.get('asset')