add location field to bookmarks
[wolnelektury.git] / src / bookmarks / api / views.py
index a9fb7c5..1bd4963 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', 'location']
+        read_only_fields = ['uuid']