Browse Source

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

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

3
apps/applications/serializers/application.py

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

Loading…
Cancel
Save