diff options
author | hewei-cmss <hewei@cmss.chinamobile.com> | 2019-09-19 11:02:02 +0800 |
---|---|---|
committer | hewei-cmss <hewei@cmss.chinamobile.com> | 2019-09-19 11:02:02 +0800 |
commit | 63f4fe0405b2086d35f723972de3d44290ec2a84 (patch) | |
tree | 34f8134630049cd07fd327b0fe8c83e5f1d0a7fe | |
parent | 6cd75e78667cd31930a696d4d48eabcfff2abb82 (diff) |
modify field
Issue-ID: VFC-1504
Signed-off-by: hewei-cmss <hewei@cmss.chinamobile.com>
Change-Id: Ica1f33261c25e3fe924bfc8e8c9d446bd714266d
-rw-r--r-- | lcm/ns/serializers/sol/create_ns_serializers.py | 3 | ||||
-rw-r--r-- | lcm/ns/serializers/sol/ns_instance.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lcm/ns/serializers/sol/create_ns_serializers.py b/lcm/ns/serializers/sol/create_ns_serializers.py index a6b87e2b..77326e46 100644 --- a/lcm/ns/serializers/sol/create_ns_serializers.py +++ b/lcm/ns/serializers/sol/create_ns_serializers.py @@ -28,4 +28,5 @@ class CreateNsRequestSerializer(serializers.Serializer): nsDescription = serializers.CharField( help_text="Description of NS", required=True, - allow_null=True) + allow_null=True, + allow_blank=True) diff --git a/lcm/ns/serializers/sol/ns_instance.py b/lcm/ns/serializers/sol/ns_instance.py index c5ccb88a..9d2e3cd8 100644 --- a/lcm/ns/serializers/sol/ns_instance.py +++ b/lcm/ns/serializers/sol/ns_instance.py @@ -677,7 +677,9 @@ class NsInstanceSerializer(serializers.Serializer): required=True) nsInstanceDescription = serializers.CharField( help_text="Human readable description of the NS instance.", - required=True) + required=True, + allow_null=True, + allow_blank=True) nsdId = serializers.CharField( help_text="Identifier of the NSD on which the NS instance is based.", required=True) |