Skip to content
Snippets Groups Projects
Commit a03f60a2 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: cba_id should be part of the serialized representation

cba_id was always part of the serialized note representation through the
use of `fields = "__all__"``and shouldn’t be write-only.
parent 210d16d6
No related branches found
No related tags found
1 merge request!21Add API documentation
......@@ -453,7 +453,6 @@ class NoteSerializer(serializers.ModelSerializer):
timeslot = serializers.PrimaryKeyRelatedField(queryset=TimeSlot.objects.all())
host = serializers.PrimaryKeyRelatedField(queryset=Host.objects.all())
thumbnails = serializers.SerializerMethodField() # Read-only
cba_id = serializers.IntegerField(required=False, write_only=True)
@staticmethod
def get_thumbnails(note):
......
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