Skip to content
Snippets Groups Projects
Commit e6ffd93e authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Fix missing get_queryset

parent f4d00872
No related branches found
No related tags found
1 merge request!18Transcription search
......@@ -59,6 +59,9 @@ class TranscriptionSearch(ListAPIView):
trans.parent_docs = all_parents[trans.id]
return results
def get_queryset(self):
''' Django rest framework check this method exists '''
def list(self, request):
query = self.request.query_params.get('q')
if not query:
......
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