from rest_framework import serializers, fields from update.models import Cinema class CinemaSerializer(serializers.ModelSerializer): class Meta: model = Cinema fields = ('id', 'name', 'ip', 'zz_num', 'inner_id', 'db_user', 'db_pwd', 'sys_ver', 'client_ver', 'update_time')