[Update] 修改批量更新资产的bug

This commit is contained in:
ibuler
2018-08-12 15:52:16 +08:00
parent 2354f0c970
commit bb6394150d
3 changed files with 5 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ class AssetSerializer(BulkSerializerMixin, serializers.ModelSerializer):
model = Asset
list_serializer_class = BulkListSerializer
fields = '__all__'
validators = [] # If not set to [], partial bulk update will be error
validators = []
def get_field_names(self, declared_fields, info):
fields = super().get_field_names(declared_fields, info)