diff options
author | 2018-01-29 14:49:57 +0800 | |
---|---|---|
committer | 2018-01-29 14:59:24 +0800 | |
commit | b2261101f8e28df823cba2f3d06af03ab01946d5 (patch) | |
tree | 6b0528240f2e59624cd9e1c27e420a026096b536 | |
parent | 96e7252cfb393e78b8061453134371865b2bdf2b (diff) |
Add model record count serializer.
Change-Id: Ia7c65e71dc391e900e7a0d7e9e74f7860ff021de
Issue-ID: VFC-687
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/samples/serializers.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lcm/samples/serializers.py b/lcm/samples/serializers.py new file mode 100644 index 00000000..c70561fa --- /dev/null +++ b/lcm/samples/serializers.py @@ -0,0 +1,19 @@ +# Copyright 2018 ZTE Corporation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from rest_framework import serializers + + +class RecordCountSerializer(serializers.Serializer): + count = serializers.CharField(help_text="Count of record", required=True) |