aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/serializers.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/notes/serializers.py')
-rw-r--r--apps/notes/serializers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/notes/serializers.py b/apps/notes/serializers.py
index f811edd..6bb08de 100644
--- a/apps/notes/serializers.py
+++ b/apps/notes/serializers.py
@@ -27,7 +27,7 @@ class NoteSerializer(TaggitSerializer, serializers.ModelSerializer):
class Meta:
model = Note
- fields = ('title', 'body_text', 'body_qjson', 'body_html', 'url', 'notebook', 'tags')
+ fields = ('id', 'title', 'body_text', 'body_qjson', 'body_html', 'url', 'notebook', 'tags')
class NotebookSerializer(serializers.HyperlinkedModelSerializer):
@@ -38,7 +38,7 @@ class NotebookSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Notebook
- fields = ('name', 'color_rgb', 'json_absolute_url', 'owner')
+ fields = ('id', 'name', 'color_rgb', 'json_absolute_url', 'owner')
class NoteTagSerializer(serializers.HyperlinkedModelSerializer):