Skip to content

Commit

Permalink
Merge branch 'import-nullable-fields-optional' into 'main'
Browse files Browse the repository at this point in the history
Make nullable fields optional for import

See merge request reportcreator/reportcreator!380
  • Loading branch information
MWedl committed Dec 20, 2023
2 parents 66c734f + ad901d6 commit 76790c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def update(self, instance, validated_data):

class ProjectNotebookPageExportImportSerializer(ExportImportSerializer):
id = serializers.UUIDField(source='note_id')
parent = serializers.UUIDField(source='parent.note_id', allow_null=True)
parent = serializers.UUIDField(source='parent.note_id', allow_null=True, required=False)

class Meta:
model = ProjectNotebookPage
Expand Down

0 comments on commit 76790c5

Please sign in to comment.