Skip to content
Snippets Groups Projects
Verified Commit 726100a8 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: contributor_ids and tags are not required

parent 9b2cf01f
No related branches found
No related tags found
No related merge requests found
......@@ -817,14 +817,14 @@ tags_json_schema = {
class NoteSerializer(serializers.ModelSerializer):
contributor_ids = serializers.PrimaryKeyRelatedField(
many=True, queryset=Host.objects.all(), source="contributors"
many=True, queryset=Host.objects.all(), required=False, source="contributors",
)
image_id = serializers.PrimaryKeyRelatedField(
queryset=Image.objects.all(), required=False, allow_null=True
)
links = NoteLinkSerializer(many=True, required=False)
playlist_id = serializers.IntegerField(required=False)
tags = JSONSchemaField(tags_json_schema)
tags = JSONSchemaField(tags_json_schema, required=False)
timeslot_id = serializers.PrimaryKeyRelatedField(
queryset=TimeSlot.objects.all(), required=False
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment