Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
e6ffd93e
Commit
e6ffd93e
authored
6 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing get_queryset
parent
f4d00872
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!18
Transcription search
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/documents/api.py
+3
-0
3 additions, 0 deletions
src/documents/api.py
with
3 additions
and
0 deletions
src/documents/api.py
+
3
−
0
View file @
e6ffd93e
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment