Skip to content

Commit

Permalink
Merge pull request #202 from dimagi/ce/null-api
Browse files Browse the repository at this point in the history
add defaults to avoid sending nulls
  • Loading branch information
calellowitz authored Nov 22, 2023
2 parents 9aa0d07 + 90ff0d4 commit 3d30255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commcare_connect/opportunity/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class CommCareAppSerializer(serializers.ModelSerializer):
organization = serializers.SlugRelatedField(read_only=True, slug_field="slug")
learn_modules = LearnModuleSerializer(many=True)
install_url = serializers.SerializerMethodField()
passing_score = serializers.IntegerField(default=-1)
description = serializers.CharField(default="")

class Meta:
model = CommCareApp
Expand Down

0 comments on commit 3d30255

Please sign in to comment.