fix(applications): 修改attrs不能为null (#5171)

Co-authored-by: Bai <bugatti_it@163.com>
pull/5172/head
fit2bot 4 years ago committed by GitHub
parent 662c9092dc
commit 75ef413ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,10 +27,7 @@ class ApplicationSerializer(BulkOrgResourceModelSerializer):
] ]
def create(self, validated_data): def create(self, validated_data):
attrs = validated_data.pop('attrs', {})
instance = super().create(validated_data) instance = super().create(validated_data)
instance.attrs = attrs
instance.save()
return instance return instance
def update(self, instance, validated_data): def update(self, instance, validated_data):

Loading…
Cancel
Save