File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ class AssetSerializer(serializers.ModelSerializer):
3737 # V3 fields
3838 asset_meta = ProductMetaSerializer (source = "product_meta" , read_only = True , many = True )
3939 organization = RelatedOrganizationField (source = "prod_type" )
40- asset_numeric_grade = serializers .IntegerField (source = "prod_numeric_grade" )
41- enable_asset_tag_inheritance = serializers .BooleanField (source = "enable_product_tag_inheritance" )
40+ asset_numeric_grade = serializers .IntegerField (source = "prod_numeric_grade" , required = False , allow_null = True )
41+ enable_asset_tag_inheritance = serializers .BooleanField (source = "enable_product_tag_inheritance" , required = False , default = False )
4242 asset_managers = serializers .PrimaryKeyRelatedField (
4343 source = "product_manager" ,
44- queryset = Dojo_User .objects .exclude (is_active = False ))
44+ queryset = Dojo_User .objects .exclude (is_active = False ),
45+ required = False , allow_null = True ,
46+ )
4547
4648 class Meta :
4749 model = Product
You can’t perform that action at this time.
0 commit comments