Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qcat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ISRIC
wocat
qcat
Commits
9b57c735
Commit
9b57c735
authored
2 years ago
by
Andreas Nüßlein
Browse files
Options
Downloads
Patches
Plain Diff
fix after version bump
parent
bfe39e66
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/configuration/api/views.py
+4
-0
4 additions, 0 deletions
apps/configuration/api/views.py
with
4 additions
and
0 deletions
apps/configuration/api/views.py
+
4
−
0
View file @
9b57c735
...
...
@@ -23,6 +23,10 @@ class ConfigurationStructureView(PermissionMixin, LogUserMixin, GenericAPIView):
``flat``: If present, the structure will be a flat list of questions.
"""
def
get_queryset
(
self
):
# DRF persists on having a "get_queryset" even when it's not used
return
def
get
(
self
,
request
,
*
args
,
**
kwargs
)
->
Response
:
flat
=
request
.
GET
.
get
(
"
flat
"
,
False
)
...
...
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