From 1bb9048910e25d8bc869cd918fc7baeea41c43c6 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 12 Jun 2020 11:45:03 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=A0=87=E7=AD=BE=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E7=B1=BBassets=E5=AD=97=E6=AE=B5required=E4=B8=BAFalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/label.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/assets/serializers/label.py b/apps/assets/serializers/label.py index de5ab7ea2..448018eab 100644 --- a/apps/assets/serializers/label.py +++ b/apps/assets/serializers/label.py @@ -20,6 +20,9 @@ class LabelSerializer(BulkOrgResourceModelSerializer): read_only_fields = ( 'category', 'date_created', 'asset_count', 'get_category_display' ) + extra_kwargs = { + 'assets': {'required': False} + } list_serializer_class = AdaptedBulkListSerializer @staticmethod