File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
care/facility/api/serializers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ class Meta:
8383
8484class AssetServiceSerializer (ModelSerializer ):
8585 id = UUIDField (source = "external_id" , read_only = True )
86- edits = AssetServiceEditSerializer (many = True )
86+ edits = AssetServiceEditSerializer (many = True , read_only = True )
8787
8888 class Meta :
8989 model = AssetService
90- exclude = ("deleted" ,)
90+ exclude = ("deleted" , "asset" )
9191
9292 def update (self , instance , validated_data ):
9393 user = self .context ["request" ].user
@@ -119,7 +119,7 @@ class AssetSerializer(ModelSerializer):
119119 location = UUIDField (write_only = True , required = True )
120120 last_service = AssetServiceSerializer (read_only = True )
121121 last_serviced_on = serializers .DateField (write_only = True , required = False )
122- note = serializers .CharField (write_only = True , required = False )
122+ note = serializers .CharField (write_only = True , required = False , allow_blank = True )
123123
124124 class Meta :
125125 model = Asset
You can’t perform that action at this time.
0 commit comments