add uuid in bookmarks
[wolnelektury.git] / src / bookmarks / api / views.py
index a9fb7c5..82f67de 100644 (file)
@@ -20,7 +20,8 @@ class BookmarkSerializer(serializers.ModelSerializer):
     
     class Meta:
         model = models.Bookmark
-        fields = ['book', 'anchor', 'note', 'href']
+        fields = ['book', 'anchor', 'note', 'href', 'uuid']
+        read_only_fields = ['uuid']