Commit 5341c465 by Tim Babych

do not int() note.pk

parent cc156c77
...@@ -75,7 +75,7 @@ class AnnotationSearchView(APIView): ...@@ -75,7 +75,7 @@ class AnnotationSearchView(APIView):
for item in query: for item in query:
note_dict = item.get_stored_fields() note_dict = item.get_stored_fields()
note_dict['ranges'] = json.loads(item.ranges) note_dict['ranges'] = json.loads(item.ranges)
note_dict['id'] = int(item.pk) note_dict['id'] = item.pk
if params.get('highlight'): if params.get('highlight'):
note_dict['text'] = item.highlighted[0] note_dict['text'] = item.highlighted[0]
results.append(note_dict) results.append(note_dict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment