Browse Source

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

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

1
apps/applications/serializers/application.py

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

Loading…
Cancel
Save